18.1 - What is the Function?
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
Simple use of print function. What will be the output of print("Python!")?
💡 Hint: Think about what you expect to see on the screen.
Print two strings. What will be displayed if you run print("AI", "Learning")?
💡 Hint: Remember the default separator.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What will print("Hello", "World") output?
💡 Hint: Focus on how multiple items are printed.
True or False: The print() function can only display strings.
💡 Hint: Consider all the data types we can print.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Write a print statement that takes a name and age and outputs a sentence: 'Your name is [name] and you are [age] years old.'
💡 Hint: Use f-strings to include both variables in the output.
Create a print statement that prints: 'Result: A1 + B2 = 5', where A1 and B2 are variables defined as A1 = 3 and B2 = 2.
💡 Hint: Incorporate variable values and arithmetic directly in your print statement.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.