Aastha wnats to create a program that accepts a string and display the characters in the reverse in the same line using a Stack. She has created the following code, help her by completing the...


Aastha wnats to create a program that accepts a string and display the characters in<br>the reverse in the same line using a Stack. She has created the following code, help<br>her by completing the definitions on the basis of requirements given below:[CBSE<br>SQP 2016]<br>Class mystack :<br>def inin (self):<br>selfe. mystr= # Accept a string<br>self.mylist= # Convert mystr to a list<br># Write code to display while removing element from the stack.<br>def display (self) :<br>

Extracted text: Aastha wnats to create a program that accepts a string and display the characters in the reverse in the same line using a Stack. She has created the following code, help her by completing the definitions on the basis of requirements given below:[CBSE SQP 2016] Class mystack : def inin (self): selfe. mystr= # Accept a string self.mylist= # Convert mystr to a list # Write code to display while removing element from the stack. def display (self) :

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here