Question
1) Write a Python program which accepts the radius of a circle from the user and compute the area. Sample Output : r = 1.1
1) Write a Python program which accepts the radius of a circle from the user and compute the area.
Sample Output : r = 1.1 Area = 3.8013271108436504
(Area should print as 3.80)
2) Write a Python program to display the first and last colors from the following list.
color_list = ["Red","Green","White" ,"Black"]
3) Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Sample value of n is 5 Expected Result : 615
4) Write a Python program which accepts the radius of a sphere from the user and compute the volume of the sphere. Print the result
5) Write a Python program to ask the user to enter an x and a y value. Then calculate (x + y) * (x + y) and print the result
EXTRA BONUS:
1) Write a Python program to find whether a given number (accept from the user) is even or odd, print out an appropriate message to the user.
*So I'm new to programming and need some help with these if anyone is willing to help me out, my class is using python from the site. This is very basic programming stuff and I'm a bit lost, I appreciate all the help! Thank you very much
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started