filmov
tv
Coding to Christmas – Python - Challenge 5
![preview_player](https://i.ytimg.com/vi/6MD7n5Dt8yA/maxresdefault.jpg)
Показать описание
You are creating a Happy Holidays game. Write a script that asks the user to enter 2 different numbers.
If the total of the two numbers is less than 25, print "Happy Holidays" otherwise print "Bah Humbug!"
Overview:
In this challenge, you’ll learn how to get your computer to execute different code depending on the information you give it.
This will allow you to answer the challenge above, as well as link to additional questions for you to try out.
What you’ll need:
What you’ll learn:
• User input
• Conditionals
• Casting
If the total of the two numbers is less than 25, print "Happy Holidays" otherwise print "Bah Humbug!"
Overview:
In this challenge, you’ll learn how to get your computer to execute different code depending on the information you give it.
This will allow you to answer the challenge above, as well as link to additional questions for you to try out.
What you’ll need:
What you’ll learn:
• User input
• Conditionals
• Casting