Guest User

Untitled

a guest
Jan 25th, 2022
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. class Town_rooms():
  2.     def __init__(self,room1,room2,room3,room4):
  3.         self.room1 = room1
  4.         self.room2 = room2
  5.         self.room3 = room3
  6.         self.room4 = room4
  7.     def printroom(self):
  8.         print("1." + self.room1)
  9.         print("2." + self.room2)
  10.         print("3." + self.room3)
  11.         print("4." + self.room4)
  12.  
  13. market = Town_rooms('The Elven Medic','The Dwarven Blacksmith','The Lizard Armorer','Vampire mage')
  14.  
  15. shop_select = int(input(f'Where do you wanna go? {market.printroom()}'))
  16.  
Advertisement
Add Comment
Please, Sign In to add comment