Answer:
The answer to this question is given below in the explanation section.
Explanation:
In this given program there are two errors, first in line number 2 that stores a string value, not int. The second error is at line 6, a symbol "*" represents multiplication, not addition.
To solve these errors, in line #2, convert the input to an int variable value 1. To add the values of variables (value1 and value2), use the plus symbol "+" in the print statement at line #6.
The correct program is given below:
<em>value1= int(input("Enter first number: "))</em>
#get second number and store it into value2 variable.
<em>value2= int(input("Enter second number: "))</em>
#add the values store in variables (value1 and value2) and then print
<em>print (value1 + value2)</em>
Hello <span>Hummingbirds2781
</span><span>
Answer: Programs that are embedded in a web page are called java applets
Hope this helps
-Chris</span>
The disc drive, I believe.
Reason is because from this machine, I only have READ permissions
and still in the Domains users. I should have full access in the share
permission “Student” becomes a part of the Domain Users group in share
permission. In this group, only READ permission is allowed.
Answer:
# input the number of temperatures required, which will be 10 here, but the user can print any number.
n=input("Enter the number of temperatures you want")
# create a list which can have n temperatures since it starts from 0, the maximum is n-1, and n needs to be converted to an integer.
temp= [0,int(n)-1]
#declared a variable of float type. As its 0.0 it will be a float, if 0 then integers, and so on
s=0.0
#running a for loop n times, and hence 0 to n-1.
for i in range(0, int(n)):
temp[i]=input("Enter the temperature in degree celsius in float")
s=s + float(temp[i])
i=i+1
print("The sum of the temperatures is:{0:0.1f}", +s)
Explanation:
The question from edhesive is: You need to write a program that calls for ten temperatures and then find the sum of temperatures. The temperature should be in float, which is expected. And the program is as being mentioned in the answer section.