#13 Python Tutorial for Beginners | Swap 2 Variables in Python

///#13 Python Tutorial for Beginners | Swap 2 Variables in Python

#13 Python Tutorial for Beginners | Swap 2 Variables in Python

FavoriteLoadingAdd to favorites

Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist :
Python Tutorial in Hindi :

Github :-

Editing Machines & Monitors :

Check out our website: www.telusko.com
courses.telusko.com

Instagram :
Twitter :
Facebook:
Telusko :
Navin Reddy :

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Donation & Support:
Indian Payment :
PayPal Id : navinreddy20
Patreon : navinreddy20

source

By |2020-09-01T09:13:07+00:00September 1st, 2020|Python Video Tutorials|36 Comments

36 Comments

  1. Uvaraj Arumugam September 1, 2020 at 9:13 am - Reply

    Their is something contradicting when you said 11 would occupy 4 bits (1011) and other a and b would occupy 3 bits. But actually all occupy same memory in size in stack if they are of same data type. Correct me if I am wrong.

  2. Gopal R September 1, 2020 at 9:13 am - Reply

    For me a= a+b method is giving answer 6,6

  3. Sathvika Kotra September 1, 2020 at 9:13 am - Reply

    did he open pycharm ?? where did he enter those commaands? i need help pls

  4. P. NITIN September 1, 2020 at 9:13 am - Reply

    Please give us a lesson to work with pycharm environment. we r not able to get u

  5. Subhadeep Das September 1, 2020 at 9:13 am - Reply

    Sir how you understood this concept ?

  6. K Kartheek September 1, 2020 at 9:13 am - Reply

    print ("ANOTHER METHOD FOR SWAPPING TWO VARIABLES IN PYTHON")
    a=5
    b=6

    a=a*b # a = 5 * 6= 30 a : 30
    b=a/b # b=30 / 6= 5 b : 5
    a=a/b # a=30 / 5=6 a : 6

    print(a)
    print(b)

    Output:
    6
    5

  7. Nishu Ahuja September 1, 2020 at 9:13 am - Reply

    On which software sir is working on ?

  8. Teja Sai September 1, 2020 at 9:13 am - Reply

    What is temp??

  9. Shivani Shrivastava September 1, 2020 at 9:13 am - Reply

    Hi, Navin
    I didn't understand why there's formula for swaping and that's clearly doing iteration adding/substracting making it one another step!

  10. Akash Suresh September 1, 2020 at 9:13 am - Reply

    How to run the code

  11. Shridaye Singh Gondal September 1, 2020 at 9:13 am - Reply

    Sir we can use "a, b = b, a" also… It works
    .
    .
    Big FanπŸ™

  12. Shashwath Sankar September 1, 2020 at 9:13 am - Reply

    this is the best python tutorial i have ever seen

  13. Ritesh Jaiswal September 1, 2020 at 9:13 am - Reply

    very very good

  14. Disha Namdev September 1, 2020 at 9:13 am - Reply

    Sir please make a video on how ROT_TWO works.

  15. sunil kharwar September 1, 2020 at 9:13 am - Reply

    keep making videos like this sir

  16. aanchal kumari September 1, 2020 at 9:13 am - Reply

    XOR SWAPINGπŸ§πŸ€“:-
    Actually in xor swapping what happens is:
    ***Note:
    In xor the answer is false –
    when both the condition is true and false.
    In xor the answer comes true-
    when only and only one condition must be true,and other is zero or vice versa.
    **
    SOLUTION=
    let x=34,y=78
    Then for swaping
    x=x xor y #first line
    y=x xor y #scnd line
    x=x xor y #thrd line
    ——–>here is in first line x get the value of (x xor y) that is:
    x=x xor y
    ——–>here in scnd line y get the value of (x xor y) that is y=x
    >>>>:solved as y=x xor y=(x xor y )xor y=x
    ""here y xor y results to be false that is 0.and hence x returns""
    ———->Similary in thrd line
    x=x xor y
    Solved as x= x xor (x xor y) =y
    """"x xor x results to be false. And y returns. """

    πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰πŸ˜‰
    I hope you people get it now😊

  17. Alpha Playz September 1, 2020 at 9:13 am - Reply

    can you plz make the same on pycharm?

  18. Ravikanth Talakoti September 1, 2020 at 9:13 am - Reply

    Can we do the same thing for three variables Navin sir???

  19. King King September 1, 2020 at 9:13 am - Reply

    Sir your teaching is good,,🌹🌹

  20. Ravikanth Talakoti September 1, 2020 at 9:13 am - Reply

    Can we do the same thing for three variables??

  21. sandip naikwade September 1, 2020 at 9:13 am - Reply

    why it is taking lot of time to create new project in pycharm

  22. rakesh nawagekar September 1, 2020 at 9:13 am - Reply

    Alien Bhai, How to use Pycharm ? Why there is no introduction video on PyCharm ?

  23. Drishti Agrawal September 1, 2020 at 9:13 am - Reply

    I don't have any youtube channel

  24. Drishti Agrawal September 1, 2020 at 9:13 am - Reply

    it is not my channel

  25. Drishti Agrawal September 1, 2020 at 9:13 am - Reply

    pls check out codewithharry if you all want to leaarn in hindi

  26. Drishti Agrawal September 1, 2020 at 9:13 am - Reply

    I already knew that LOLLOLLLLLL!!!!!

  27. Mauryan Empire September 1, 2020 at 9:13 am - Reply

    hey buddies…start working on juypter notebook…its the simplest❀..As a complete beginner i am quite comfortable with it.

  28. mayank JULAH September 1, 2020 at 9:13 am - Reply

    You haven't explained how to use Pycharm in any of your previous video and you're using it in this video without even telling the fundamentals of it. It's not fair.I am sure a lot of viewers (Including me) won't be able to get this and will find it confusing. I myself have wasted a lot of time just trying to figure out Pycharm. So please take care of all this stuff.

  29. Rkholic Shivi September 1, 2020 at 9:13 am - Reply

    how to know 11 has 3 bits & what's the concept of saving bits

  30. BE_B25_Shubham Kasture September 1, 2020 at 9:13 am - Reply

    Why we dont have any header file in python like in other languages?

  31. Boopa Hari September 1, 2020 at 9:13 am - Reply

    Make a separate video to work in pycharm

  32. Kamlesh Kumar September 1, 2020 at 9:13 am - Reply

    bro how to clear the screen in python idle

  33. Maurya Trivedi September 1, 2020 at 9:13 am - Reply

    How to even use pycharm community version you just go to the lesson with out letting us know how to use pycharm

  34. Bhawna Sukhyani September 1, 2020 at 9:13 am - Reply

    How to run this IDLE Shift+10 is not working

  35. Aditya silakari September 1, 2020 at 9:13 am - Reply

    Kuch bhi smjh ni aaya

  36. Yash Tyagi September 1, 2020 at 9:13 am - Reply

    Who else is class 11 student ??

Leave A Comment

*