Skip to main content
Ask a Question
Python
Asked a question 9 months ago

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