How do I print Queue data and not memory location? Dsy Daisy Duke D1 Bo Duke D2 Luke Duke OldMan Jessie Duke Sherrif Roscoe Coltrain Boss John Dutton Hand Rip Wheeler Daughter Beth Dutton Son Kacey Dutton b_Man Bruce Wayne s_man Clark Kent g_Frnd Lois Lane Tall Mark Thomas Short Ed Wilson Teach Maurice Smeltzer What would you like to do? (1) pop one person from the stack. (2) pop two people from the stack. (3) pop three people from the stack. (4) pop four people from the stack. enter a number 1 through 4: 1 Popping one person from the stack. print("Popping one person from the stack.") print(f" The person at the top of the stack is: ", {stack.get()}) The person at the top of the stack is: {('Dsy', <__main__.person object at 0x00000269C76F3290>)}
How do I print Queue data and not memory location?
Dsy Daisy Duke D1 Bo Duke D2 Luke Duke OldMan Jessie Duke Sherrif Roscoe Coltrain Boss John Dutton Hand Rip Wheeler Daughter Beth Dutton Son Kacey Dutton b_Man Bruce Wayne s_man Clark Kent g_Frnd Lois Lane Tall Mark Thomas Short Ed Wilson Teach Maurice Smeltzer
What would you like to do? (1) pop one person from the stack. (2) pop two people from the stack. (3) pop three people from the stack. (4) pop four people from the stack. enter a number 1 through 4:
1 Popping one person from the stack. print("Popping one person from the stack.") print(f" The person at the top of the stack is: ", {stack.get()}) The person at the top of the stack is: {('Dsy', <__main__.person object at 0x00000269C76F3290>)}
Step by step
Solved in 4 steps with 12 images