0

Help please: what im doint wrong? Programe dont work: im enter and 2 2 and "2" "2" , it is write: Value error: could not convert

Programe dont work: im enter and 2 2 and "2" "2" , it is write: Value error: could not convert string to float: 2 2/ "2" "2" i=(float(input("Enter here: "))+float(input('Enter here: '))) print (i)

18th Jan 2017, 6:51 PM
Даниэль Рустамов
Даниэль Рустамов - avatar
3 Antworten
+ 1
Your code seems working both python 2.x and 3.x... for me: Version 2.7 ( I'm pretty sure ) on QPython android app, and 3.x in SoloLearn Code Playground... Anyway, you could also try: print(float(input("Enter here: "))+float(input('Enter here: '))) ... as it's also work for me, but not sure at all that could change something ^^
19th Jan 2017, 9:06 AM
visph
visph - avatar
0
try with Programe dont work: im enter and 2 2 and "2" "2" , it is write: Value error: could not convert string to float: 2 2/ "2" "2" a=float(input("Enter here: ")) b=float(input('Enter here: ')) i=a+b print (i)
18th Jan 2017, 7:05 PM
Minovsky
Minovsky - avatar
0
try enter "2" '2' , write?
18th Jan 2017, 7:11 PM
Даниэль Рустамов
Даниэль Рустамов - avatar