Ask a Question
Python Hey,I ma gonna stuck in below code. It throws me some error like: "---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-e0d8a0b33c53> in <module>
1 # Step 1 - Take and print a list
2
----> 3 n = int(input("Enter elements : "))
4 print(n)
5
ValueError: invalid literal for int() with base 10: '1 2 3 4 5 6 7'
Hey,I ma gonna stuck in below code. It throws me some error like: "---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-e0d8a0b33c53> in <module>
1 # Step 1 - Take and print a list
2
----> 3 n = int(input("Enter elements : "))
4 print(n)
5
ValueError: invalid literal for int() with base 10: '1 2 3 4 5 6 7'
Fuel your ambition, discover your passion and achieve your professional goals with LetsUpgrade.
Sign Up Now