2. Write a python program that will be used for conversion. The Users
should have three choices for conversion:
1. Celsius to Fahrenheit
2. Meter to Feet
3. Seconds to Hours and Minutes
If the user selects 1, the program should ask the user to enter the value
in Celsius and convert to Fahrenheit.
If the user selects 2, the program should ask the user to enter the value
in meter and the program calculates the equivalent feet.
If the user selects 3, the program should ask the user to enter the
number of seconds and calculates the number of hours and minutes.
Example
450 seconds is equivalent to 0 hours, 7.5 minutes
4050 seconds is equivalent to 1 hours, 7.5 minutes
1. Write a Python program for a guessing game. The program allows the
user to enter a number to guess a secret number. Assuming that the
secret number is 143, it provides a feedback that will display a message
“ Congratulation !!!You got the number...” if the user successfully
guessed the secret number otherwise it will display a message “Sorry,
better luck next time..”.(you can assign any number for the secret
number)
Sample outputs(assuming the secret number is 143)
Enter your guess number: 123
Sorry, better luck next time…
Enter your guess number : 143
Congratulation !!!You got the number..
clear that plagiarism is a sticky ethical issue, ranging from accidental infractions to outright theft of intellectual property. Review the Code of Academic Integrity in the UoPeople Catalog (available on UoPeople's website, https://www.uopeople.edu), and then write a reflection answering the following questions:
1. Did any of the information in the Catalog - such as the consequences - surprise you? Why or why not?
2. Given the potential consequences for plagiarizing, why do you think students engage in plagiarism? Be sure to explore at least two possible reasons why students might plagiarize.
3. What strategies will you use to avoid plagiarism?
def countdown(n):
if n <= 0:
print('Blastoff!')
else:
print(n)
countdown(n-1)
Write a new recursive function countup that expects a negative argument and counts “up” from that number. Output from running the function should look something like this:
>>> countup(-3)
-3
-2
-1
Blastoff!
Write a Python program that gets a number using keyboard input. (Remember to use input for Python 3 but raw_input for Python 2.)
If the number is positive, the program should call countdown. If the number is negative, the program should call countup. Choose for yourself which function to call (countdown or countup) for input of zero.
Provide the following.
The code of your program.
Output for the following input: a positive number, a negative number, and zero.
An explanation of your choice for
Find latitude and longitude of first 20 countries with a population greater than or equal to the population limit given below. Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Assume radius of earth: 6371 km
Round length of each line and final result to 2 decimal points
If co-ordinates are missing for any country use 0.000 N 0.000 E
Population limit: 2072
Find latitude and longitude of first 20 countries with a population greater than or equal to the population limit given below. Use the country details from this dataset.
Your task is to find the sum of the length of all lines (in kms) that can be drawn between co-ordinates of these countries.
Population limit: 277500
Note: Population limit will change at random intervals. So please make sure answer is computed for the correct population limit before submitting.
Write a program to classify athletes into three classes by weight. The categories are: over 80kg → heavy weight, between 60 and 80 kg → medium weight, less than 60kg → light weight.
Write a function called print volume (r) that takes an argument for the radius of the sphere, and prints the volume of the sphere.
Enter a name: frienzy
hello, frienzy .