Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is the output of print('Python is fun!')?
Think about simple string output.
How do you print the number 100?
Use the print function.
What is the default separator in the print() function?
Think about how printed outputs look.
Can you use print() to output multiple variables at once?
Remember the function allows for multiple objects.
Create a Python script that introduces yourself with your name and age using the print() function. It should use f-strings and display: 'My name is [Your Name] and I am [Your Age] years old.'
Focus on embedding your variables within the f-string.
How would you modify this print statement to include escape characters? print('Welcome to the AI class!') to also show that it encourages learning.
Think about using \\n to add a newline.
5 more questions in this section. Enroll free to practise them all.
Enroll free