18.11 - Printing with Concatenation
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
What will be the output of this code: print('Hello, ' + 'Python!')
💡 Hint: It's a simple greeting.
Concatenate 'Goodbye, ' with 'Friend.' What do you get?
💡 Hint: Think about how strings are joined together.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What will this code print: print('Hello, ' + 'there!')?
💡 Hint: Look for spaces and punctuation.
Can you concatenate a string and a number directly in Python?
💡 Hint: Think about data types.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
You have the variables: name = 'Alice', age = 22, hobby = 'painting'. Write a print statement that outputs: 'Alice is 22 years old and likes painting.'
💡 Hint: Ensure all parts are properly concatenated.
Create a dynamic greeting using input values: name = input('Enter your name: '), greet = 'Welcome'. Output should be 'Welcome, [name]!'
💡 Hint: Don't forget to ensure user input is treated correctly!
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.