DEMO #2: In this interactive activity, learn how your program compares strings to see if they're the same or different!

User input is stored as a string exactly as the user enters it. We use the symbol == to see if two strings are the same.

Our programs do not read strings. Strings are stored as a collection of letters that are in a certain order. In this activity, we'll practice comparing two strings to see if they are the same.

  • Click Run to practice.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE