0

Can someone please explain me the type conversion section of python according to solo learn's syllabus ?

print(float(input("Enter a number: ")) + float(input("Enter another number: "))) This is the try yourself section ☝☝☝ How should I write it to make no errors ?

7th Apr 2019, 1:35 PM
Ankyie Plays
1 Odpowiedź
0
If you are asking how to correctly input your numbers, you have to put your two numbers on separate lines. So 4 7 returns 11.0, but 4 7 will return an error.
7th Apr 2019, 2:00 PM
Russ
Russ - avatar