filmov
tv
Coding to Christmas - Python - Challenge 14

Показать описание
Challenge 14 - Merry Christmas Functions
Write a function that asks the user for a number and then accept that number of names input by the user. It should then loop through the names and print "Merry Christmas" + name.
Create a second function, that will accept different Christmas greetings and will output the greeting reversed.
Create a third function, that will check if the following statements are palindromes: 1) A Santa at Nasa 2) Christmas snow angels 3) Flee to me remote elf
Overview:
In this challenge, you’ll learn how to create use loops and conditionals to create different functions.
This will allow you to answer the challenge above, as well as link to additional questions for you to try out.
What you’ll learn:
• Functions
• Conditionals
• For loops
Write a function that asks the user for a number and then accept that number of names input by the user. It should then loop through the names and print "Merry Christmas" + name.
Create a second function, that will accept different Christmas greetings and will output the greeting reversed.
Create a third function, that will check if the following statements are palindromes: 1) A Santa at Nasa 2) Christmas snow angels 3) Flee to me remote elf
Overview:
In this challenge, you’ll learn how to create use loops and conditionals to create different functions.
This will allow you to answer the challenge above, as well as link to additional questions for you to try out.
What you’ll learn:
• Functions
• Conditionals
• For loops