Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Code doesn't work!
#2
first of all I don't think

(Apr-18-2019, 06:50 AM)the_entrepreneur Wrote: It doesn't show any errors

is correct. You should get NameError for num2 being not defined.
Then, to fix it compare lines 30 and 31. Do you see the difference?

(Apr-18-2019, 06:50 AM)the_entrepreneur Wrote: Here's another word guessing game I built which doesn't work either:
Please, start separate thread for this question. And provide more info as to how exactly it does not work
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Python Code doesn't work! - by the_entrepreneur - Apr-18-2019, 06:50 AM
RE: Python Code doesn't work! - by buran - Apr-18-2019, 07:14 AM
RE: Python Code doesn't work! - by the_entrepreneur - Apr-20-2019, 02:25 AM
RE: Python Code doesn't work! - by SheeppOSU - Apr-20-2019, 04:24 AM
RE: Python Code doesn't work! - by the_entrepreneur - Apr-20-2019, 07:14 AM
RE: Python Code doesn't work! - by SheeppOSU - Apr-20-2019, 08:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extending list doesn't work as expected mmhmjanssen 2 229 May-09-2024, 05:39 PM
Last Post: Pedroski55
  hi need help to make this code work correctly atulkul1985 5 878 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 737 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Why doesn't calling a parent constructor work with arbitrary keyword arguments? PurposefulCoder 4 1,005 Jun-24-2023, 02:14 PM
Last Post: deanhystad
  Code works but doesn't give the right results colin_dent 2 772 Jun-22-2023, 06:04 PM
Last Post: jefsummers
  Beginner: Code not work when longer list raiviscoding 2 870 May-19-2023, 11:19 AM
Last Post: deanhystad
  Why doesn't this code work? What is wrong with path? Melcu54 7 1,922 Jan-29-2023, 06:24 PM
Last Post: Melcu54
  Code used to work 100%, now sometimes works! muzicman0 5 1,533 Jan-13-2023, 05:09 PM
Last Post: muzicman0
  color code doesn't work harryvl 1 946 Dec-29-2022, 08:59 PM
Last Post: deanhystad
  Something the code dont work AlexPython 13 2,415 Oct-17-2022, 08:34 PM
Last Post: AlexPython

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020