[issue44083] problem with updated 3.9.5

Swarnila Chakma report at bugs.python.org
Sun May 9 02:37:06 EDT 2021


New submission from Swarnila Chakma <swarnila707 at gmail.com>:

the codes were running okay with the version 3.9.4. But yesterday after updating the new version 3.9.5, the same codes are showing error. For example, if I were to write a code about swapping numbers, i write the code:

print('Enter two variables')
a = input() #suppose 2 nilam
b = input()#suppose 3 nilam
x = int(a)
y = int(b)
x = x-y #now we stored value of x-y in x variable
y = x+y #now we stored value of x+y in y variable
x = y-x
print(x)
print(y)

And I get the following output:

File "C:/Users/Asus/PycharmProjects/celsius to fahrenheit/main.py", line 4, in <module>
    x = int(a)
ValueError: invalid literal for int() with base 10: ''

I tried reinstalling the version 3.9.4, but it's the same result. It would be appreciable if it can be solved soon.

----------
components: Windows
files: main.py
messages: 393299
nosy: paul.moore, steve.dower, swarnila707, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: problem with updated 3.9.5
versions: Python 3.9
Added file: https://bugs.python.org/file50026/main.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44083>
_______________________________________


More information about the Python-bugs-list mailing list