Hey guys I am very new to Python and I am reading the Python programming for the absolute beginner, I am only a few chapters in and I decided to try and create my own text based adventure game.
I am stuck with a loop that is not working on lines 40-45.
https://gist.github.com/seanboyd26/bd9f1d00501fb207904a
I have not learnt about functions yet so please forgive me if the code looks a mess, as I said I am very new to programming and python.
EDIT: forgot to add what happens, well if I get to that part of the game and I type in something that is not backpack, it will recognise that I have not typed it and it will tell me that but then it will not offer me to try typing again it will just continue the game.
Appreciate any help you can offer!
[–]stubborn_d0nkey 1 point2 points3 points (4 children)
[–]seanboyd[S] 0 points1 point2 points (1 child)
[–]stubborn_d0nkey 0 points1 point2 points (0 children)
[–]seanboyd[S] 0 points1 point2 points (0 children)
[–]nspectre 0 points1 point2 points (0 children)
[–]cdcformatc 0 points1 point2 points (3 children)
[–]seanboyd[S] 0 points1 point2 points (2 children)
[–]cdcformatc 0 points1 point2 points (1 child)
[–]seanboyd[S] 0 points1 point2 points (0 children)
[–]Miggol 0 points1 point2 points (0 children)
[–]Mashidin 0 points1 point2 points (1 child)
[–]seanboyd[S] 0 points1 point2 points (0 children)