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)
3 Respostas
+ 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 ^^
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)
0
try enter "2" '2' , write?