Beginner's Guide to Coding and Data

Level: Beginner

Textual data explained | Introducing characters, strings, and encodings for programming beginners

video

expand_more chevron_left

text

expand_more chevron_left

Understanding Textual Data in Computer Programs

Textual data serves as one of the two fundamental types of data in every computer program. We utilize it to represent the external world. So, how do we actually work with it? Let's find out.

Our journey starts by analyzing text at its most basic unitβ€”characters. Whether it's a letter, a number, or a symbol, each character is crucial for creating textual data.

Characters: The Building Blocks

In programming, every symbol is known as a character. Not just letters, but numbers, punctuation marks, and other special symbols all count as characters. In essence, a character is the smallest textual unit in programming.

Strings: More Than Just Characters

Characters alone aren't enough for most tasks. We string them together to form sequences of characters, commonly known as strings. For example, the text Deeplizard consists of 10 characters strung together.

// JavaScript example
let string = "DEEPLIZARD";
let length = string.length;  // Outputs 10

Indexing in Strings

Within a string, each character can be accessed by its index. Indexing starts from 0, allowing us to easily reference each character in a string. For instance, in the string DEEPLIZARD the character at index 6 is Z.

// JavaScript example
let character = string.charAt(6);  // Outputs 'Z'

The Screen vs Under the Hood

What we see on our screen is a representation made up of pixels. However, computers understand each character as a specific number, thanks to character encoding.

Each character corresponds to a unique number in the computer's memory, similar to Morse code or Braille in the physical world. While we interact with textual data as characters, the computer interacts with their numerical representations.

quiz

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Quiz Results

resources

expand_more chevron_left
Textual data is one of the two types of data inside every computer program, and we use textual data to represent the outside world. Let's take a detailed look at textual data inside computer programs. 1) Text inside computer programs: Characters and strings 2) Text on screens: Characters displayed 3) Text under the hood: Character encoding After we explore these ideas, you'll be ready to use textual data inside computer programs, and you'll know the difference between the text we see on the screen and the data the computer sees under the hood. πŸ•’πŸ¦Ž VIDEO SECTIONS πŸ¦ŽπŸ•’ 00:00 Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources 00:30 Help deeplizard add video timestamps - See example in the description 09:40 Collective Intelligence and the DEEPLIZARD HIVEMIND πŸ’₯🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎πŸ’₯ πŸ‘‹ Hey, we're Chris and Mandy, the creators of deeplizard! πŸ‘€ CHECK OUT OUR VLOG: πŸ”— https://youtube.com/deeplizardvlog πŸ’ͺ CHECK OUT OUR FITNESS CHANNEL: πŸ”— https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA 🧠 Use code DEEPLIZARD at checkout to receive 15% off your first Neurohacker order: πŸ”— https://neurohacker.com/shop?rfsn=6488344.d171c6 ❀️🦎 Special thanks to the following polymaths of the deeplizard hivemind: Mano Prime πŸ‘€ Follow deeplizard: Our vlog: https://youtube.com/deeplizardvlog Fitness: https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA Facebook: https://facebook.com/deeplizard Instagram: https://instagram.com/deeplizard Twitter: https://twitter.com/deeplizard Patreon: https://patreon.com/deeplizard YouTube: https://youtube.com/deeplizard πŸŽ“ Deep Learning with deeplizard: AI Art for Beginners - https://deeplizard.com/course/sdcpailzrd Deep Learning Dictionary - https://deeplizard.com/course/ddcpailzrd Deep Learning Fundamentals - https://deeplizard.com/course/dlcpailzrd Learn TensorFlow - https://deeplizard.com/course/tfcpailzrd Learn PyTorch - https://deeplizard.com/course/ptcpailzrd Natural Language Processing - https://deeplizard.com/course/txtcpailzrd Reinforcement Learning - https://deeplizard.com/course/rlcpailzrd Generative Adversarial Networks - https://deeplizard.com/course/gacpailzrd Stable Diffusion Masterclass - https://deeplizard.com/course/dicpailzrd πŸŽ“ Other Courses: DL Fundamentals Classic - https://deeplizard.com/learn/video/gZmobeGL0Yg Deep Learning Deployment - https://deeplizard.com/learn/video/SI1hVGvbbZ4 Data Science - https://deeplizard.com/learn/video/d11chG7Z-xk Trading - https://deeplizard.com/learn/video/ZpfCK_uHL9Y πŸ›’ Check out products deeplizard recommends on Amazon: πŸ”— https://amazon.com/shop/deeplizard πŸ“• Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard's link: πŸ”— https://amzn.to/2yoqWRn 🎡 deeplizard uses music by Kevin MacLeod πŸ”— https://youtube.com/channel/UCSZXFhRIx6b0dFX3xS8L1yQ ❀️ Please use the knowledge gained from deeplizard content for good, not evil.

updates

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Update history for this page

Did you know you that deeplizard content is regularly updated and maintained?

  • Updated
  • Maintained

Spot something that needs to be updated? Don't hesitate to let us know. We'll fix it!


All relevant updates for the content on this page are listed below.