Exit Quiz

Question 1 of 4
1 of 4
What value will be output when this program is executed?
123456
def example(): number = 10 print(number) number = 5 example()
Code colour

When programmers write code, they use a special tool called an IDE (Integrated Development Environment). In an IDE, different colours are used to help programmers understand the code:


  • • Blue - numbers and boolean values
  • • Green - strings
  • • Purple - keywords
Select one answer
Look carefully at where the print statement is located in the code.