Please fix the bug in python | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Please fix the bug in python

#Code by sololearn python lesson and this is getting error why? # User input is converted into an integer height = int(input()) print(type(height)) # The line above is an effective way to combine 2 instructions into one # height1 = input() # height2 = int(height1)

21st Aug 2023, 3:57 PM
Muntazir ali syed
Muntazir ali syed - avatar
6 ответов
+ 5
Muntazir ali Kazmi , please give us the error message you get...
21st Aug 2023, 6:28 PM
Lothar
Lothar - avatar
+ 5
Muntazir ali Kazmi , why do you post this code snippet? what is your question? what kind of issue do you have?
21st Aug 2023, 5:38 PM
Lothar
Lothar - avatar
+ 4
The code works fine. First of all please tag the programming language instead the all other. Without the task description cannot be helped. I don‘t remeberer such as task. Otherwise there are new overworked courses.
21st Aug 2023, 4:24 PM
JaScript
JaScript - avatar
+ 2
When i run this code this do not perform type query this show's an error so i am asking that why an error any mistake in code or what???
21st Aug 2023, 6:14 PM
Muntazir ali syed
Muntazir ali syed - avatar
+ 2
Muntazir ali Kazmi , here will be needed link to your code from Sololearns Playground and explanation how you get above mentioned error und above mentioned code? I have done that and cannot get any errors. Here you can also see: https://code.sololearn.com/cVjRP1mAiLzk/?ref=app
23rd Aug 2023, 3:01 PM
JaScript
JaScript - avatar
0
This is out put of this code now please tell me what is the matter.. Traceback (most recent call last). File "./Playground/file0.py", line2, in <module> height = int(input ()) ValueError : invalid literal for int() with base 10 : ' '
23rd Aug 2023, 1:50 PM
Muntazir ali syed
Muntazir ali syed - avatar