Computer Science > Computational Thinking And Programming 2 > Data Structures
Write the following user-defined functions in Python :
(i) push_trail(N, myStack)
NmyStackmyStackNmyStackN[1, 2, 3, 4, 5, 6, 7]push_trail()3, 4, 5, 6, 7[3, 4, 5, 6, 7]N(ii) pop_one(myStack)
myStack'Stack Underflow'None(iii) display_all(myStack)
myStack'Empty Stack'Keep Practicing
Edvaya Target
Board & Competitive Exams Made Easy
Edvaya Target is built for students preparing for JEE (Main & Advanced), NEET UG, and Board Exams (CBSE, ISC & State Boards) — using a practice-first approach that actually works.
Current Question
Community Stats
Track Your Progress
Sign up to save your practice progress, add favorites, and get personalized insights.

