ValueError: invalid literal for int() with base 10: '-f'
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 GitHubhttps://github.com/pdeitel/IntroToPython/issues/10, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABCWXNPAKVR747ZOAC2PGKDZH72MVAVCNFSM6AAAAABJPTDROKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TSMZVGM2DEMY. You are receiving this because you are subscribed to this thread.Message ID: @.***>