Begin Coding in Python


Go to this compiler to practice your code.

Practice 2.1

Here is your first program: print("Twinkle, twinkle, little star")

NOTE: "print" is not capitalized.  Instructions are case-sensitive.

  This program consists of one line made of the following parts:

  • the word print
  • an opening parenthesis
  • a double-quotation mark
  • text
  • another double-quotation mark
  • a closing parenthesis

Program


print("Twinkle, twinkle, little star")


After opening your compiler, type your program into the Input side of the compiler and click "RUN".  What appears on the Output side?

If you received an error message, please review your program for correct grammar and syntax.


Try This!

Remove the double quotes from your program above and run the code again.  What happens?

*Removing the double quotes from your program will create an invalid syntax.  This means that there is a line in your Python code that the compiler doesn't know how to interpret.