Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Seemingly simple loop
#5
Python 2 support ended about a year and a half ago. I would be surprised (but it would not be the first time) if your computer did not support Python 3, at least 3.6 which seems to be the minimum supported by most libraries.

That said, you should also look at using dictionaries. Dictionaries can be used to map your responses. And, thinking more I would create a class called Room, where each room has attributes 'description' at least, a dictionary of where you go when you pick a direction, a list of items in the room that can be taken, etc.

Just thoughts.
Reply


Messages In This Thread
Seemingly simple loop - by Weber585 - Mar-21-2021, 02:15 AM
RE: Seemingly simple loop - by BashBedlam - Mar-21-2021, 02:17 AM
RE: Seemingly simple loop - by Weber585 - Mar-21-2021, 02:32 AM
RE: Seemingly simple loop - by Larz60+ - Mar-21-2021, 02:23 AM
RE: Seemingly simple loop - by jefsummers - Mar-21-2021, 12:31 PM
RE: Seemingly simple loop - by BashBedlam - Mar-21-2021, 01:28 PM
RE: Seemingly simple loop - by menator01 - Mar-21-2021, 01:42 PM
RE: Seemingly simple loop - by jefsummers - Mar-21-2021, 07:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  why does VS want to install seemingly unrelated products? db042190 3 706 Jun-12-2023, 02:47 PM
Last Post: deanhystad
  Simple Variable Saving in Loop DevDev 3 3,080 Mar-09-2021, 07:17 PM
Last Post: Fre3k
  Seemingly unstable GPIO output while executing from RetroPie LouF 6 4,018 Feb-19-2021, 06:29 AM
Last Post: LouF
  simple for loop? gr3yali3n 3 2,578 Sep-22-2020, 05:35 AM
Last Post: buran
  Adding second message to simple loop error PythonGainz 2 2,134 Apr-06-2020, 11:55 AM
Last Post: PythonGainz
  simple key value loop help siten0308 4 2,497 Jun-25-2019, 02:53 PM
Last Post: siten0308
  Simple while loop only works on first attempt jsb83 2 2,062 Jun-20-2019, 08:57 PM
Last Post: jsb83
  .split seemingly gets ignored liquidsnake 8 4,083 Feb-22-2018, 04:46 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

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