Study

Python in the Console

  •   0%
  •  0     0     0

  • Which command can display a message in the console?
    print
  • What is the first word needed to define a function?
    def
  • What comes after "def" when defining a function?
    The function name
  • How many smileys will be printed to the console?
    9
  • What is ASCII art?
    text-based art that can be printed to the console
  • Each command in the body of a function must be...
    indented
  • When printing to the console, what comes after the print keyword?
    Parentheses
  • What comes after the parentheses in a function definition?
    colon
  • Before a function can be called, it must be...
    defined
  • Will this command execute properly when run?
    yes
  • What is missing from this statement?
    quotes
  • What will be printed when this code runs?
    Trick question! There is an error - the function names do not match
  • What two things are needed to call a function?
    function name, parentheses
  • True or False: Console applications use what is known as a graphical user interface
    False
  • What will be printed when this code runs?
    hi hi
  • True or False: Console applications are entirely text-based
    True