Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
General Grok Help
#1
if room == "middle":
  print("Actions available: forward, backward, look")
  action = input("> ")
  if action == "forward":
    room = "end"
  elif action == "backward":
    room = "start"
  else:
    room = "middle"
This is the output:
Output:
Actions available: forward, look > look You are standing at the entrance to a long tunnel. Actions available: forward, look > forward You are in the depths of the tunnel. Actions available: forward, backward, look > backward You are standing at the entrance to a long tunnel. Actions available: forward, look > forward You are in the depths of the tunnel. Actions available: forward, backward, look > look You are in the depths of the tunnel. Actions available: forward, backward, look > forward You have escaped the tunnel. You win!
I am currently studying Grok The Dark Tunnel (Python)
Hour of Code: The Dark Tunnel, spent quiet some time, if anyone is able to point out what i am missing or misplaced please help, iv been getting so many syntax errors I really need your help guys !

Huh Idea Idea Angel
Reply


Messages In This Thread
General Grok Help - by AmineLS - Sep-10-2019, 07:23 PM
RE: General Grok Help - by SheeppOSU - Sep-10-2019, 07:56 PM
RE: General Grok Help - by AmineLS - Sep-11-2019, 01:26 AM
RE: General Grok Help - by SheeppOSU - Sep-11-2019, 01:43 AM
RE: General Grok Help - by AmineLS - Sep-11-2019, 02:30 AM
RE: General Grok Help - by SheeppOSU - Sep-11-2019, 06:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GROK MODULE 5 HELP! AmineLS 1 8,573 Sep-26-2019, 04:21 PM
Last Post: metulburr
  New programmer using GROK AmineLS 2 3,169 Sep-10-2019, 12:25 PM
Last Post: AmineLS

Forum Jump:

User Panel Messages

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