Professional Documents
Culture Documents
Python Variable Exercises
Python Variable Exercises
1. Write a program that uses input to prompt a user for their name and then welcome them.
Use a variable to store user name. (var_ex1)
Output:
Hello Susan
2. Write a program that uses input to prompt the user for a Celsius temperature, convert the
temperature to Fahrenheit, and print out the converted temperature. (var_ex2)
Output:
3. Write a program that uses input to prompt the user for a radius of circle and then calculate
the area of a circle. (var_ex3)
Output:
4. Write a program that uses input to prompt the user for a number and then check the number
is positive, negative or zero number.
Output:
Zero number