If Clive wants to print the numbers 1 through 10 with the code:
for x in range(10):
print (x)
He will not get the output he wants because python begins counting at 0, so the numbers 0 through 9 will print.
<h3>Code explanation</h3>
The code is represented in python.
- We loop through the number in the range 10.
- Then print the the looped numbers.
Generally, python begins counting from 0. Therefore, the numbers that will be printed are as follows:
learn more on python here: brainly.com/question/26104476?referrer=searchResults
Companies will have to raise prices in order to be able to pay employees, which would mean consumers would buy less, meaning that more employees would have to get laid off, and so on, and so on.
Answer:
Program :
celsius_input= float(input("Enter the value of celcius"))#It is used for the input from the user.
print((celsius_input * 1.8) + 32) # it prints the value of fahrenheit for the user.
Output:
- If the user gives the input as 23.6, then the output is 74.48.
- If the user inputs is 45, then the output is 113.
Explanation:
- The above code is in python language, in which the first line is used to generate the message for the user, take the input from the user and store it into the "celsius_input" variable after converting it into float data type.
- Then the second line will print the value of Fahrenheit by the help of formula "(celsius_input * 9/5) + 32". The 9/5 will become 1.8. hence we used 1.8 in the place of 9/5.
That you have to multiply first and then divide