@bramley oops did not see your post before posting mine. that is correct though.
to css. that should work
Hey I remember when I did this a while back and somethings that can be really nice when working with users are making sure no matter what they type the program will not crash.
This can be done using a try: block before using int(input so that things will run smoother if accidently type a letter. Using a try block with a while statement is usually the best approach.(actually it might not be that is just how i do it)
something else that would be nice is adding a colon and a space at the end of an input statement. like guess=int(input('Try again: '))
If you can also print("") in places that need spaces as this makes more sense. This can be after Too high.
Lastly adding a way to say hey I want to play this game x number of times and then add a scoreboard for each time you play that is simple like hey you took 10 try which is 3 better than your last attempt. And then at the end average all the numbers and say hey it takes you average 5 times to solve this puzzle.
Just to note, numbers cannot be variables. Also an array of arrays would be much easier to work with like
[0,0,0,0,0,0,0,0,0,0,3,0,0,0] ]#13(Secret Study)
you can then use this with dungeon = 2
The problem it seems is in your actual code there is a space before from IBSerial import *
For reference the website is empires.shoryamalani.com It is a game that I am creating. If you want to try just create a game and I will manually fill it up with other people.
How good do I need to be and how much time will this take. Also what backend are you planning to use?
It may not make a difference but your code would also be nicer if you always used a / on the end tags like </h2>. This will make your code easier to read because attributes would be purple and tags would be blue.