Closed as not planned
Description
Bug report
Bug description:
Version used: python3.10 with venv -
PythonPractice
value = int(input())
# Trying to pass an integer value from command prompt ex: 4 throws
Traceback (most recent call last):
File "D:\PythonPractice\Algorithms And Data Structures\linearsearchexamples.py", line 13, in <module>
value = int(input().strip())
^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
CPython versions tested on:
3.10
Operating systems tested on:
Windows
Metadata
Metadata
Assignees
Labels
No labels