Question: Must be written in python 3 please. No advanced code Q1. Write a function greeting(name) which prints the message Hello name, welcome to the world
Must be written in python 3 please. No advanced code
Q1. Write a function greeting(name) which prints the message "Hello name, welcome to the world of Python on the IDLE shell. name is the input argument of the function.
Q2. Develop a function, hello50(), which asks the user for their name and age, and print out a message that tells them the year that they will turn 50 years old. Message format: Hello name, you will be 50 in year. Replace name and year with user name and the year they turn 50.
Q3. Create a function, cm2feetIn(height), to convert the input height given in cm to feet and inches and print the results on IDLE screen. (Hint: 1 in = 2.54 cm).
Q4. Create a function sumfinder() to request the user for 5 numbers, calculate sum of numbers, and return the result. Q5. Write the function, meanCalc(lst) to compute the mean (or average) of numbers in the list, lst and return the result.
Q6. Write a function, nameLister(n), to prompt the user for n names, assign the names in a list, arrange them in alphabetical order, and return the resulting list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
