You decided to study Python on Hyperskill with your friend. However, they couldn't read this topic due to family matters and asked you to brief them. You did your best with the theory, but now, it's time to practice. Correct the code your friend wrote so it would print a compliment.
The string module
Help a friend
Report a typo
Sample Input 1:
Mary
awesomeSample Output 1:
Hi, Mary! You look awesome today! You're doing great!Write a program in Python 3
template = string.Template("Hi, $name! You look adjective today! You're doing great!")
name = input()
adjective = input()
compliment = template.format(name=name, adjective)
print(compliment)
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.