Find the programs' errors and tell me the error, the type of error, and the correction.
1)
Num1= 7
Num2=8
Sum = num1 + Num2
2)
num = float(input("Enter a number: "))
if num < 0:
print("Positive number")
elif num == 0
print("Zero")
else:
Print("Negative number")
3)
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))
if (num1 <= num2) and (num1 <= num3)
largest = num1
Elif (num2 >= num1) and (num2 >= num3):
largest == num2
else:
largest = num3
print("The largest number is", largest)
Answers
Answered by
0
Answer:
Spectroscopy is the study of the interaction between matter and electromagnetic radiation as a function of the wavelength or frequency of the radiation. In simpler terms, spectroscopy is the precise study of color as generalized from visible light to all bands of the electromagnetic spectrum; indeed, historically, spectroscopy originated as the study of the wavelength dependence of the absorption by gas phase matter of visible light dispersed by a prism.
Explanation:
Similar questions