Learn Computer
Learn Computer
  • 70
  • 547 273
Implementation of Stack in Using Python List | CBSE Class 12 Computer Science with Python | Push POP
Stack Implementation using List (Example) , Implementation of Stack in Python Using List, CBSE Class 12 Computer Science with Python, CBSE Class 12 Computer Science . In this video, you will understand how to implement stack using list. Implementation of Stack using List in Python, Stack Operations using List, Data Structures Class 12 Computer Science In this video, you will understand how to implement various stack operations push and pop using List.
Question is
Alam has a list containing 10 integers. You need to help him create a program with separate user defined functions to perform the following operations based on this list.
Traverse the content of the list and push the even numbers into a stack.
Pop and display the content of the stack.
For Example: If the sample Content of the list is as follows: N=[12, 13, 34, 56, 21, 79, 98, 22, 35, 38] Sample Output of the code should be: 38 22 98 56 34 12
Переглядів: 1 075

Відео

Python Program to swap two elements in a list | Replace an Element in Python List | Python Coding
Переглядів 2,4 тис.2 роки тому
Replace an Element in Python List or Python Program to swap two elements in a list is common assignment in Python Coding. Finding and replacing elements in a list in Python is comparatively simple task as Python List has many options to perform logic as compared to C , C or java. Replacing List Items in python using forward indexing or backward indexing both as both indexing option available in...
Assigning multiple variables in one line in Python | Multiple Assignment Statement in one Line
Переглядів 7542 роки тому
#python #pythonprogramming #pythontutorial #cbseclass12 #cbseclass11 Assigning multiple variables in one line in Python is possible. For example x, y = 10,20 . When we run code of list swapping programs and we write L [ I ] , L[ I 1 ] = L [ I 1 ], L [ I ] and this is possible only in Python not in C or Java. For this in C we take third variable for swapping two congestive elements or Array or L...
List functions and Methods in Python | append() vs extend() in Python | List Manipulation in Python
Переглядів 2152 роки тому
Python offers many built in functions and methods for list manipulation. List functions and Methods in Python is asked in many exams. Commonly methods like append() vs extend() in Python. pop() vs remove() in Python. List Manipulation in Python is very important to perform advance list logic implemented in various projects.
Max Number from List | Min Number from List | Find Smallest & Largest Numbers in a List | Python
Переглядів 6292 роки тому
Biggest or Max Number from List or Smallest or Min Number from List or we can say Find Smallest & Largest Numbers in a List or Biggest Smallest Element from Python List is commonly asked program in all standards of programming not even in Python but in all programming languages like C C Java etc. Python List ua-cam.com/video/AS231tVLoLU/v-deo.html Python List Swapping Elements ua-cam.com/video/...
Add Two Numbers in C | C Program to Add Two Numbers | Addition of two numbers in C | C Programming
Переглядів 552 роки тому
Add Two Numbers in C is basic program not even in C Language but in every language like Python , Java , C , Java Script etc. C Program to Add Two Numbers is very very simple after watching this video. Addition of two numbers in C or in C Programming or C is just simple as take two variables and store values in it and store result in third variable and print. sum of two numbers in Python : ua-ca...
Pyramid Pattern in Python | Patterns in Python | Python Pattern Programs | Star Pattern in Python
Переглядів 12 тис.2 роки тому
Solve any Star Pattern program in Python is common task asked in Python Programming Language . Python Pattern Programs like Star Pattern in Python , Pyramid Pattern in Python or any type of Patterns in Python easily drive after watching this video. Pattern like * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * A AB ABC ABCD ABCDE * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
Study Plan To SCORE 35/35 in COMPUTER SCIENCE | Full Revision Term 2 Class 12 COMPUTER SCIENCE
Переглядів 1372 роки тому
Term 2 class 12 examination will be on 13th June 2022. In this video Study Plan to Score 35/35 in Computer Science examination. Discuss Stack operations using push pop with List and dictionaries. Full revision Term 2 Class 12 computer science notes also available in form of PDF link given below Notes PDF available here anacondapython.com/2022/05/16/python-notes-for-class-xii-computer-science/ P...
Program to find Reverse of Number - Reverse Number in Python - Palindrome Number in Python
Переглядів 2042 роки тому
Program to find Reverse of Number is common logical program generally asked. Reverse Number in Python means if number is 3265 than reverse is 5623. if number is equal to reverse of number than number is called Palindrome Number in Python. Factorial of Number in Python ua-cam.com/video/xyU4a4RoZYk/v-deo.html Prime Number in Python ua-cam.com/video/r5Uaf0U28dg/v-deo.html Palindrome String in Pyth...
Factorial in Python - Factorial of a number in Python - Program to find Factorial in Python
Переглядів 2652 роки тому
During coding the common question or program asked to drive is factorial of a number. Factorial in Python is same as in other languages like C , C , Java etc. In this video i drive Program to find Factorial in Python in 4 easy ways. Using for loop and while loop. We drive program using reverse loop as well as straight (linear) loop .
List Programs in Python - Swap List elements in Python - Swap first half of list with second half
Переглядів 2,4 тис.2 роки тому
List Programs in Python are very very essential to brush up concept of list. Many logical problems are their like display even elements of Python list , odd number from Python list , elements ends with particular numbers like 2 or 3 or any other number. Python list have forward indexing as well as backward indexing. With help of indexing we can easily swap elements of Python List. Python List i...
Python Tutorials - Palindrome String Program in Python - Reverse The String - CBSE Class 12
Переглядів 2282 роки тому
#creatingforindia #createforindia Palindrome is string which reverse is equal to original string. for example string "MADAM" , reverse of string MADAM is MADAM hence this string is called palindrome string. Take another example a student named NITIN is palindrome string because reverse of NITIN is NITIN. So now task is to find the string whether its palindrome of not. various logic for this pro...
Full Revision Term 2 Class 12 COMPUTER SCIENCE | CBSE Computer Science Term 2 Exam - Joins in SQL
Переглядів 1252 роки тому
#createforindia Full Revision Term 2 Class 12 COMPUTER SCIENCE In this video we discussed term 2 Exam Computer Science - Sample Paper from CBSE official Site will be discussed and all possible questions which will expected in next CBSE Term 2 Examination , discussed in detail. Specially creation of database in MySql, opening database in MySql, Showing all tables from database. Joins like Cross ...
Python program to check prime number - Prime Number in Python - CBSE Class 12 - #CreatingForIndia
Переглядів 8542 роки тому
#CreatingForIndia Prime Number in Python - In Hindi Python Programming - CBSE Class 12 In this video, we have explained Python program to check prime number . A Prime Number is one who has only two factors i.e. itself and the digit 1. For Example a numbers 2,3,5,7,11,13,17, 23 ,29 etc. are prime number. Prime number program is one of the best program to understand looping concept is usually ask...
Use of eval() in Python - Python eval function - int() vs eval() in Python - Python Programming
Переглядів 16 тис.2 роки тому
Use of eval() in Python - Python eval function - int() vs eval() in Python - Python Programming
Dictionary in Python - Python Dictionary Tutorial - Python Class 11 Computer Science
Переглядів 2122 роки тому
Dictionary in Python - Python Dictionary Tutorial - Python Class 11 Computer Science
Conditional data entry in Excel - Cell Value Restrict to Particular Value - Validate Value in Excel
Переглядів 1742 роки тому
Conditional data entry in Excel - Cell Value Restrict to Particular Value - Validate Value in Excel
Understanding Shallow Copy and Deep Copy in Python
Переглядів 3312 роки тому
Understanding Shallow Copy and Deep Copy in Python
List in Python | Python List Manipulation Class 11 | List in Python Class 11 | Computer Science
Переглядів 5542 роки тому
List in Python | Python List Manipulation Class 11 | List in Python Class 11 | Computer Science
LOOPING | Find the Output | looping in python programming | CBSE Class12 | Computer Science
Переглядів 2,1 тис.2 роки тому
LOOPING | Find the Output | looping in python programming | CBSE Class12 | Computer Science
String Slicing in Python - MCQ series of python class 12 - How to Solve Questions of String Slicing
Переглядів 7352 роки тому
String Slicing in Python - MCQ series of python class 12 - How to Solve Questions of String Slicing
CBSE Class 12 Python | MCQ Python | Sumita Arora | Preeti Arora | Python Revision Tour1 | CBSE Term1
Переглядів 1,1 тис.2 роки тому
CBSE Class 12 Python | MCQ Python | Sumita Arora | Preeti Arora | Python Revision Tour1 | CBSE Term1
Python Class 12 | Chapter 1 MCQ | Python Revision Tour | MCQ Python for Class 12 | Computer Science
Переглядів 2622 роки тому
Python Class 12 | Chapter 1 MCQ | Python Revision Tour | MCQ Python for Class 12 | Computer Science
Python Class 12 - Chapter 1 MCQ - Python Revision Tour - Term 1 - CBSE Class 12 Python - MCQ Python
Переглядів 4632 роки тому
Python Class 12 - Chapter 1 MCQ - Python Revision Tour - Term 1 - CBSE Class 12 Python - MCQ Python
MCQ FOR CLASS 12 COMPUTER SCIENCE - ORDER OF EVALUATION - PYTHON PROGRAMMING - OPERATOR PRIORITY
Переглядів 4052 роки тому
MCQ FOR CLASS 12 COMPUTER SCIENCE - ORDER OF EVALUATION - PYTHON PROGRAMMING - OPERATOR PRIORITY
Range Function In Python - Python Range Function With Example - Python Programming - CBSE Class 11
Переглядів 10 тис.2 роки тому
Range Function In Python - Python Range Function With Example - Python Programming - CBSE Class 11
Introduction to CSV file - Data file handling in Python-CBSE Class 12 Computer Science - writerows()
Переглядів 5612 роки тому
Introduction to CSV file - Data file handling in Python-CBSE Class 12 Computer Science - writerows()
Returning Values From Python Functions - Python Programming
Переглядів 4393 роки тому
Returning Values From Python Functions - Python Programming
Python Basics Course Lesson 4 - Python Fundamentals - 3 - CBSE class 11
Переглядів 1,3 тис.4 роки тому
Python Basics Course Lesson 4 - Python Fundamentals - 3 - CBSE class 11
Python Basics Course Lesson 3 - Python Fundamentals - 2 - CBSE class 11
Переглядів 5464 роки тому
Python Basics Course Lesson 3 - Python Fundamentals - 2 - CBSE class 11

КОМЕНТАРІ

  • @AbhishekYadav-fe2wg
    @AbhishekYadav-fe2wg Місяць тому

    Brother please speak in Hindi if possible

  • @avinashdube4976
    @avinashdube4976 2 місяці тому

    thank you for clear the diff between eval and int

  • @SolomonWest-bn9sh
    @SolomonWest-bn9sh 3 місяці тому

    I searched every where on earth and now i found how the end statement works right here, Thanks a bunch !

  • @gaganbiharirout3802
    @gaganbiharirout3802 3 місяці тому

    Thank you sir it helped me a lot

  • @GOUR_157
    @GOUR_157 4 місяці тому

    Thank you sir😊❤

  • @elektron2kim666
    @elektron2kim666 5 місяців тому

    "Eval()" or "VAL()" is for "strings" with extra features. No easy way to get from "56.9876564654 * 23.87643" (string) or "45.7865453" (string) to float. Old Basic and so on had this feature. A string can be a database structure or a dimensional array; a$(x,y,......). In Python it figures out what class you define (if you didn't) and it might give strange errors, if you don't know the difference. Strings are usually ASCII bytes, so we couldn't/can't just calculate a number with a string. Therefore it's "a translation of a string to a number or more of that nature including calculation." The opposite is STR(number) or similar from 3.1415927 (number) ---> "3.1415927" (string). I know about all sorts of code like 30 of them. You will hit a wall without getting from a number to a string or the opposite easily in code. This is not critique, but insight/advice, if you start coding. The "Enter No 1:" and another is old code somehow. You can do INPUT(a), EVAL(a)" with "Enter your problem and calculation here:", a (string) nowadays. So, you type "X squared + 3x = 2 in world economics" or "3+2" or whatever.

  • @ElijahAddo-w2d
    @ElijahAddo-w2d 5 місяців тому

    22

  • @limitededition1485
    @limitededition1485 5 місяців тому

    Omg this is just so amazing

  • @Iamexalted
    @Iamexalted 5 місяців тому

    why do you use english title? you think all people in youtube is from your background?

  • @pnspvyshali
    @pnspvyshali 5 місяців тому

    thank you so much for your wonderful explanation sir. my concepts are really clear now. i have been searching for a video like this since very long,..thank you once again..

  • @fatimashahid8512
    @fatimashahid8512 6 місяців тому

    confusion solved within minutes👏👏

  • @ManojKumar-hh6xx
    @ManojKumar-hh6xx 6 місяців тому

    Tysm ❤️ sir it helped me so much😊😊

  • @zangialfayoum9754
    @zangialfayoum9754 6 місяців тому

    Thank you, sir. I so confused by ChatGPT inconsistency about this topic. Can I ask you something? Is it same for C# immutable intergers? ChatGPT say that in C#, int don't change it's value, but overwrited old value with new value in the same memory address. What make me confused is, why the hell is that different with mutable data behavior? I checked using unsafe and int* to get adress of the variable, and yes, not like Python, it's still the same! It changed in place! How come it is imuttable? Please, can you explain it?

  • @krishgamerz7951
    @krishgamerz7951 6 місяців тому

    Very nice 👍👍👍👍👍🆗👌☺️😊

  • @solitexhexploring9637-qh6lv
    @solitexhexploring9637-qh6lv 6 місяців тому

    great sir you explained this concept nicely , namaste sir🙏🙏🙏🙏

  • @Cricke.Lovers
    @Cricke.Lovers 7 місяців тому

    Sir 1 to 19 count bale m ans 9 hoga kyu ki 18 bhi divisible hai 3 s

  • @Veeruu
    @Veeruu 7 місяців тому

    Thnx sir

  • @Sp7._.indian.._
    @Sp7._.indian.._ 7 місяців тому

    Most helpful video I found Thank you sir😊

    • @learncomputer4187
      @learncomputer4187 7 місяців тому

      Most welcome

    • @ssharma_2008
      @ssharma_2008 7 місяців тому

      @@learncomputer4187 Sir ne video upload krni band krdi kya?

  • @tanushreedhawan3263
    @tanushreedhawan3263 8 місяців тому

    Thank you sir😄

  • @SumanKumari-dj3gu
    @SumanKumari-dj3gu 8 місяців тому

    Mansi +1'sci'

  • @SumanKumari-dj3gu
    @SumanKumari-dj3gu 8 місяців тому

    Mansi +1'sci'

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @anutampaul9964
    @anutampaul9964 8 місяців тому

    This is absolutely perfect video according to the topic. Thanks a lot sir.

  • @itz_akki_view07
    @itz_akki_view07 8 місяців тому

    ek serious question sir plzzz help that I can't discuss with my parents or friends,🥺🙇 so plzz give your advice:- sir, school in which i am going udhar fees jayda but koi na, lekin udhar mujhe itna lecture samaj nhi aata as compared to youtube or tution,,, and school me to udhar fee bhi lagti h and really mene 10th 11th me jitna padha udhar se mene only 10% padha or 90%+ sir appse or yt ke others channel and tution.,, So I am thinking that I should take addmission in another school where fee less.. and now I'm in 11th and I want to take in 12th...so plzzz tell me sir I am in very bad s what should I do 🙇🥺😣😩

    • @learncomputer4187
      @learncomputer4187 8 місяців тому

      CBSE Registration done in 11 so better to continue...jis school m jayoge woh bhi extra fee charge karenge

    • @itz_akki_view07
      @itz_akki_view07 8 місяців тому

      @@learncomputer4187 sir, they are not taking too much high fee and in this school in full year I have completed my all syllabus by youtube and tution,, and cbse register ho gya h so plzz bata do sir can leave in 12th🙏

    • @learncomputer4187
      @learncomputer4187 8 місяців тому

      Yes...if any school admit you in 12 ..but be careful..clear everything before applying TC to previous school...and all fee admission fee..any hidden charges.....in advance.... कई बार बाद मैं डिमांड की जाती है और कोई रास्ता नहीं बचता

    • @itz_akki_view07
      @itz_akki_view07 8 місяців тому

      @@learncomputer4187 tanku for telling sir🙏 I'll alert 👍

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @sunita2025
    @sunita2025 8 місяців тому

    8:12 len(L)-1

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @billbakshi3307
    @billbakshi3307 8 місяців тому

    Nicely explained. Lots of ❤

  • @billbakshi3307
    @billbakshi3307 8 місяців тому

    Awesome

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Wonderful explanation sir👍

  • @NeelamJyoti-mr9xk
    @NeelamJyoti-mr9xk 8 місяців тому

    Anmol salaria +1 sci

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @Bhagatharsh55
    @Bhagatharsh55 8 місяців тому

    Harpreet+1 science

  • @chanvir4066
    @chanvir4066 8 місяців тому

    navjit kaur +1 science

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science JNV jalandhar Really appreciable sir

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @GurleenPalSingh
    @GurleenPalSingh 8 місяців тому

    Muskan +1 science

  • @sunita2025
    @sunita2025 8 місяців тому

    Sunita +1 science