You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ValueError: invalid literal for int() with base 10: '-f' #10
hi Mr Paul
i wrote your codes for roll die and JupyterLab showed below error message:
ValueError: invalid literal for int() with base 10: '-f'
for line : number_of_frames = int(sys.argv[1])
please help me
As written, this program is meant to be executed from the command line, not Jupyter. Replace the uses of sys.argv with actual integers.
Paul Deitel, CEO
Deitel & Associates, Inc.
https:://deitel.com
________________________________
From: hoseinalhoseiny ***@***.***>
Sent: Tuesday, June 18, 2024 5:09 AM
To: pdeitel/IntroToPython ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [pdeitel/IntroToPython] ValueError: invalid literal for int() with base 10: '-f' (Issue #10)
hi Mr Paul
i wrote your codes for roll die and JupyterLab showed below error message:
ValueError: invalid literal for int() with base 10: '-f'
for line : number_of_frames = int(sys.argv[1])
please help me
—
Reply to this email directly, view it on GitHub<#10>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABCWXNPAKVR747ZOAC2PGKDZH72MVAVCNFSM6AAAAABJPTDROKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TSMZVGM2DEMY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Activity
pdeitel commentedon Jun 18, 2024