ValueError: could not convert string to float: 'erght'

前端 未结 0 1081
轻奢々
轻奢々 2020-12-10 04:19
n = input("enter a number:")
if (float(n))> 0:
    print(\'Positive\') 
elif (float(n))< 0:
    print(\'Negative\')
elif n== \'0\': 
    print(\'Zero         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题