LITERALS ( NUMBERS & STRINGS ) - PYTHON PROGRAMMING

Поділитися
Вставка
  • Опубліковано 18 жов 2024

КОМЕНТАРІ • 201

  • @sundeepsaradhi
    @sundeepsaradhi  6 років тому +113

    HI VIEWERS
    In the STRING FORMATTING concept i have written the print function and please correct it with format function for alignments.
    LEFT JUSTIFY
    Wrong Statement : print("hello","30")
    CENTER ALIGNMENT
    Wrong Statement : print("hello","^30")
    Correct Statement : format("hello","^30")
    I am sorry for the mistake and please make a correction.

    • @archanas4953
      @archanas4953 6 років тому +2

      Thank you for the lecture sir. Truly Helpful.

    • @raveeshreyas5181
      @raveeshreyas5181 4 роки тому

      No sorry from yr end,it's a just mistake,happens oftentimes

    • @padmajalanka4316
      @padmajalanka4316 4 роки тому +2

      At the left string i.e. format("Hello", "

    • @azhagans7486
      @azhagans7486 4 роки тому

      thank u sir , i confused that .,

    • @sangeetamukherjee7515
      @sangeetamukherjee7515 4 роки тому

      Sir going by the replies pertaining to your correction i am confused as to what the correct syntax for the alignments are?please help!!!!!!

  • @manojkumarmanikonda3804
    @manojkumarmanikonda3804 Рік тому +10

    Sir I'm M.Manoj I have learned python in this playlist and placed in 2 companies,Thank you for your service sir🙏🙏🙏 and I wish you to continue like this..and I also suggested this playlist to many of my friends...love you sir😊😊, I strongly suggest this playlist to the students those who are watching, this is the best playlist and best faculty to learn python.Once again Thank you sir🙏🙏🙏

  • @riniroshan7095
    @riniroshan7095 4 роки тому +26

    I am the beginner sir.. After seeing ur video I have more confident that I can also learn this programming Thank you so much sir... Clearly explained sir.

    • @satyavani9448
      @satyavani9448 3 роки тому

      How much time Did it take to learn python after watching these tutorials?

    • @tanjinabegum-sz5tt
      @tanjinabegum-sz5tt Рік тому

      Did you learn coding?

  • @ashokhacker8216
    @ashokhacker8216 3 роки тому +10

    print("What's Your Name?") this statement prints no error, sir. I think this statement prints an error while we are using single line quotes for eg:
    print('What's Your Name?'). I think it is the correct statement print('What\'s Your Name?')
    your videos are excellent thank you so much, sir.

    • @MrChotu-xy1xz
      @MrChotu-xy1xz 2 роки тому

      bro error raledhuga bro double quote petinapudu

    • @gamerDnoob47
      @gamerDnoob47 Рік тому +2

      It used to be error before, but its not error in python 3.7 version

  • @dhavalkuvadia5921
    @dhavalkuvadia5921 3 роки тому +2

    I am a commerce Grad and you just made python so easy for me. Awesome teaching sirjee.

  • @lokeshnaidu3855
    @lokeshnaidu3855 2 роки тому +8

    0:00 to 15:57 is all about Numbers
    15:59 to 31:00 is all about Strings.

  • @selvama5889
    @selvama5889 4 роки тому +3

    It’s an awesome explanation of the python programming . Thank you so much sir you’re reaching the many

  • @josephperera8282
    @josephperera8282 4 роки тому +1

    Hi Sundeep thanks very much appreciate your teaching Joseph Perera

  • @saipriya864
    @saipriya864 4 роки тому +1

    U r the best faculty for computer language sir tq so much sir plz do more videos like this

  • @naveenkommineni6101
    @naveenkommineni6101 3 роки тому +1

    Your Teaching is Awesome sir, It's clearly understandable. Thank you for making the Video.

  • @Understanding_the_world_withme
    @Understanding_the_world_withme 4 роки тому +1

    Sir this videos are too much helpful to me.. It is making my concepts very clear.. And it is enlarging my knowledge.. Thank you very much sir..

  • @hemantbagul9830
    @hemantbagul9830 4 роки тому +1

    best teaching
    keep it up sir
    i loved your teaching very much.

  • @raveeshreyas5181
    @raveeshreyas5181 4 роки тому +1

    Simple n lucid way of teaching ,U strive hard to make every point understoodwell.thanks ton

  • @rajeshgoud7547
    @rajeshgoud7547 6 років тому +41

    Mistake :
    Raw String Printing :
    ===============
    Wrong Syntax : print(R,"What\'s Your Name")
    Correct Syntax :print(R"What's Your Name")
    You can use R or r without Space.

    • @deepak__saini
      @deepak__saini 4 роки тому

      Correct

    • @medagamvinitha9815
      @medagamvinitha9815 4 роки тому

      yes rajesh garu sundeep sir syntax will shows the error that is" R will not defined"

    • @jaskaranvirsingh4348
      @jaskaranvirsingh4348 4 роки тому

      thanks brother

    • @dhruvinshah3085
      @dhruvinshah3085 4 роки тому

      as per your correct syntax still it shows the error
      TypeError Traceback (most recent call last)
      in ()
      ----> 1 print(R"what's your name")
      TypeError: 'tuple' object is not callable

    • @srivatsa5117
      @srivatsa5117 4 роки тому +1

      print(r'what\'s your name'), this gives the answer, Sandeep need to correct this

  • @farahtawfiq7761
    @farahtawfiq7761 3 роки тому +2

    thank you so much Mr. sundeep

  • @Desicraft07
    @Desicraft07 Рік тому

    It's always fun to learn from u sir

  • @hemanthboppa5355
    @hemanthboppa5355 4 роки тому +9

    String Formatting Output is different which has explained in the Video.
    In [5]:
    format("hello","

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

    So good tutorial video !!!

  • @SabthingTalks
    @SabthingTalks 4 роки тому +1

    Hello Sandeep,left justify when I am using its not Space justified its text getting justified.Please check at ur end again.Thanks for Vdo

  • @pavanpavankalyan2790
    @pavanpavankalyan2790 4 роки тому

    Hlo sir
    Your way of teaching spr sir

  • @apple-mp4tk
    @apple-mp4tk 4 роки тому +1

    I just want to say thanks , you are They best, I feel like am going school again,

  • @sivareddy-ui8lw
    @sivareddy-ui8lw 4 роки тому +2

    Hi sir,Recently Started watching python videos.In that print("what's your name ") is working without escape sequence or Raw String .Is this because of latest version of python r am I doing something Wrong??????....Please reply for this to continue your videos.

    • @sundeepsaradhi
      @sundeepsaradhi  4 роки тому +3

      Hi
      You are exactly correct in lower versions you have to give raw string

    • @swatichauhan4575
      @swatichauhan4575 3 роки тому +1

      You cleared my doubt too ..thanks 😀

  • @oohabedapudi9259
    @oohabedapudi9259 4 роки тому +1

    Please explain practically also by programming

  • @syedshashmi541
    @syedshashmi541 4 роки тому +1

    In the latest version it is different sir...Raw string is not valid,escape as well... and much more...am watching this on tubestudy app pls correct it

  • @ksumit304
    @ksumit304 4 роки тому +8

    Dear sir,
    in "loss of precision problem" what will output?

    • @Manoj-lg5zc
      @Manoj-lg5zc 4 роки тому

      output for "underflow" also

    • @fasak840
      @fasak840 4 роки тому +1

      @@Manoj-lg5zc it will be zero(0)

    • @dheerajshetty4941
      @dheerajshetty4941 3 роки тому

      @@fasak840 It will give approximated value

  • @rajeshupadhyay8778
    @rajeshupadhyay8778 3 роки тому +1

    Negative whole number is also integer constants

  • @rashmiranjandas8483
    @rashmiranjandas8483 4 роки тому +1

    rawstrings, allignment errors are there sir....please correct those....but UR VIDEOS ARE THE BEST

    • @bijitmajumdar2666
      @bijitmajumdar2666 4 роки тому

      try this one, i hope it will work.
      print(R'what\'s your name')

  • @rohityadav1545
    @rohityadav1545 3 роки тому +1

    sir at 23:30 you wrote print(r,"what\'s your name") instead of print(r"what\'s your name") with comma it give error

  • @jayvasan899
    @jayvasan899 4 роки тому

    Good Approach to the learners.👌

  • @anushab2530
    @anushab2530 Рік тому +1

    Sir I'm seeing every video of uu.... related to python.....i have some doubts on This course...... could you please permit me to speak with you sir...... don't say no sir it's my honorable request....

    • @sundeepsaradhi
      @sundeepsaradhi  Рік тому

      You can contact me in whatsapp available in channel homepage

  • @hemanthboppa5355
    @hemanthboppa5355 4 роки тому +5

    In the latest Version of the Python loss of precision will not be published as the Compiler will limit the value to some extent
    In [2]:
    10/3
    Out[2]:
    3.3333333333333335

  • @arulmozhivarman617
    @arulmozhivarman617 4 роки тому +7

    I think you gotta a cute daughter....Haha I can hear her, she's repeating you 😂💓

  • @sudarshank9741
    @sudarshank9741 3 роки тому +2

    print("what's your name") sir this works in python3.9.2

  • @jayanthivikas7478
    @jayanthivikas7478 4 роки тому

    Sir if we print anything there will be displayed with single quotes sir as u showed in that in allignments as
    output

  • @syedshashmi541
    @syedshashmi541 4 роки тому +1

    Sir which version of python ur teaching ....mostly it giving errors in latest version
    Pls reply to watch ur further videos .
    .

    • @alexpattanaik6937
      @alexpattanaik6937 4 роки тому

      Bro I used also least version but it worked
      #Timepasshub

  • @vidyullatajadhav8167
    @vidyullatajadhav8167 3 роки тому +1

    I think Python 3.9.1 is not having problem of overflow, underflow and loss of precision.

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

    sir in raw string using there is no comma beside R
    print(R"what\'s your name")

  • @rohithvysyaraju
    @rohithvysyaraju 4 роки тому +1

    String formatting ie.,allignments are not getting correct output sir.

  • @maheswari653
    @maheswari653 4 роки тому +3

    Sir when arithmetic overflow error occur in execution of program

  • @naveenprakash9987
    @naveenprakash9987 4 роки тому +1

    Getting the string format output differently. > is right justified, < is left justified. Just opposite!

  • @sailakshmi7067
    @sailakshmi7067 4 роки тому

    Sir for espace sequences same kind of qoute which is we used for starting and ending should be used.Otherwise it leafs to synatax error.
    Wrong:print("what\'s your name")
    Syntax error
    Right:print('what\'s your name')
    what's your name

  • @DebashisDGiri
    @DebashisDGiri 4 роки тому

    Sir all the video in this playlist ar in sequence or not??

  • @bindhuchenna6512
    @bindhuchenna6512 Місяць тому

    Sir i tried raw string as you said the syntax is not in right format
    Print("R, what\`s your name ")
    By the way after using R it is not printing \ it is printing with out that kindly review it and let me know at 23:19

  • @umak4310
    @umak4310 3 роки тому

    Thank u for uploading this video sir

  • @akhilprem6110
    @akhilprem6110 4 роки тому +1

    Sir your instructions for string formatting are not working in the latest python version please do tell the solution

  • @padmaprabhala1898
    @padmaprabhala1898 4 роки тому +5

    When we give print(“hello”, “

  • @vasudev2142
    @vasudev2142 4 роки тому +1

    Hi, Can you please explain with Python examples that should be great! please respond.

  • @debasmitamohapatra9685
    @debasmitamohapatra9685 4 роки тому

    Thank you sir for beautiful class

  • @sherawatpavan3050
    @sherawatpavan3050 4 роки тому

    SuPer sir.Thank u very much sir❣️❣️❣️❣️❣️

  • @sahithichunduru1970
    @sahithichunduru1970 4 роки тому +1

    What about ljust rjust commands sir?

  • @bhaskarnaik1722
    @bhaskarnaik1722 2 роки тому

    Mentioning letter 'L' with long integers are only for old version of python
    Pls teach us latest version

  • @sudharani3203
    @sudharani3203 4 роки тому

    Clearly you are explaining sir

  • @anjuchaurasia3576
    @anjuchaurasia3576 4 роки тому

    V nice

  • @sreebootham
    @sreebootham Рік тому +1

    26:43 i tried that alignment program... it just simply got printed as "hello

    • @shivankk467
      @shivankk467 Рік тому

      hello lakshmi see the comment above

    • @shivankk467
      @shivankk467 Рік тому

      print(format("helloji", ">30"))

  • @aries2464
    @aries2464 3 роки тому +1

    No aren't triple quotes used for muliple line comment.
    For single line comment we use #
    For multiple we use '''

  • @narasimhareddy1556
    @narasimhareddy1556 5 років тому

    Nice videos sir , plz updated to the opp concepts

  • @pratibhavaidya8065
    @pratibhavaidya8065 3 роки тому +1

    Sir, print is working without escape characters and when used with R it is giving error, Tried with 2 different versions.please explain

  • @pranayteja4162
    @pranayteja4162 3 роки тому

    Alignments not working
    print('hello', '

  • @rishivijaykumar
    @rishivijaykumar 3 роки тому

    this is not working left space and right space, may it replaced by different option?

  • @himavanthjp912
    @himavanthjp912 3 роки тому +1

    Tqsm sir

  • @varunkumar41426
    @varunkumar41426 4 роки тому

    Nice explanation sir

  • @shivakrishnachary4509
    @shivakrishnachary4509 5 років тому

    Which textbook is preferable to read ?

  • @POKEMONGOJOURNEY
    @POKEMONGOJOURNEY 4 роки тому

    Sir without slash bhi print ho Raha ha

  • @muvvavignesh7084
    @muvvavignesh7084 2 роки тому

    Thank you sir

  • @surekhaighe6033
    @surekhaighe6033 6 років тому

    It is so easy made by u

  • @sharathkumar-mz1gu
    @sharathkumar-mz1gu 6 років тому +1

    Sir, can u make videos on linux internals and linux os...

  • @sheikhrashid3055
    @sheikhrashid3055 2 роки тому

    Super sir 🔥

  • @dimplenirwan3676
    @dimplenirwan3676 4 роки тому

    Sir 2nd video in 19.45 time point is in correct...I also typ print ("what's the Python programming")...Bit no showing error.
    Pass define

    • @teju7334
      @teju7334 3 роки тому

      Yeah getting same to me also

  • @deepak__saini
    @deepak__saini 4 роки тому

    Sir "what's your name" direct print se bhi print ho raha h to rawstring ka use Kya h

  • @tilakkumar7833
    @tilakkumar7833 3 роки тому

    sir i got error ,cam u clarify ?
    print(R,"what\'s your name")
    Traceback (most recent call last):
    File "", line 1, in
    print(R,"what\'s your name")
    NameError: name 'R' is not defined

  • @achandrakiran7913
    @achandrakiran7913 4 роки тому

    Sir what is the output when loss of precision problem occurs

  • @letstalkmachi2567
    @letstalkmachi2567 4 роки тому

    Amazing sir

  • @venkym3148
    @venkym3148 6 років тому +3

    Sir!!!!
    JAVA!!!!!!!!!!❣️❣️

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому +1

      hi venky
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @prashanthireddy2716
    @prashanthireddy2716 3 роки тому

    Sir this videos makes to select in placements

  • @Raginipandey953
    @Raginipandey953 4 роки тому

    Is it necessary to save the file with extension.py ...... Because idle will automatically save the file with .Py extension

  • @loddachakrawarthy1637
    @loddachakrawarthy1637 2 роки тому

    How to control the under and over flow problem

  • @SAITEJAASWINIKUMARAYYAGARI
    @SAITEJAASWINIKUMARAYYAGARI Рік тому

    Sir, I didn't understand how to keep the triple quotes

  • @saisanthosh8370
    @saisanthosh8370 4 роки тому

    Sir what is the differnce between print and printf

  • @fasak840
    @fasak840 4 роки тому

    what is the output of loss of precision ??

  • @shivanshmishra9429
    @shivanshmishra9429 4 роки тому +1

    ❤️thanks sir

  • @soubhiksamadder1170
    @soubhiksamadder1170 6 років тому +9

    "hello", "

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому +17

      Hi soubhik
      I am sorry there is mistake in that and thanks for your observation.
      Correct syntax for alignment is
      print('{:>30}'.format("hello"))
      Try this and you will get it
      Once again thanks for observation

    • @medagamvinitha9815
      @medagamvinitha9815 4 роки тому +3

      @@sundeepsaradhi print('{:>30}'.format("hello")), this is also not workout sir

    • @Bin_Da_z
      @Bin_Da_z 4 роки тому +1

      Its working in python 3.8.1

    • @sureshmutta368
      @sureshmutta368 4 роки тому

      @@sundeepsaradhi print(f'{"hello":>30}')

    • @ragisatyasai2469
      @ragisatyasai2469 3 роки тому

      print("{0:10}".format("Guido"))
      print("{0:^10}".format("Guido"))
      This is the syntax you should follow.

  • @freetvserail
    @freetvserail Рік тому

    not printing sir print("Hello", "

    • @sundeepsaradhi
      @sundeepsaradhi  Рік тому

      Syntax is different pls refer to first comment, i have given correct one there

  • @vinothganapathi5571
    @vinothganapathi5571 3 роки тому

    print('{:>40}'.format("hi")) -- left side align

  • @nazeemashaik8531
    @nazeemashaik8531 4 роки тому +1

    No need to mention the ; after print statement in python?

  • @sayyaparajujahanvi3809
    @sayyaparajujahanvi3809 3 роки тому

    Sir.....I have tried Raw String Concept in IDLE but it's not working. The error shown is that 'R' is not defined. How to overcome this issue?

    • @susmithak5919
      @susmithak5919 2 роки тому +1

      Hi!
      print(R"what\'s your name?")
      Once you try this without giving comma (raw string), so that no need to define R

    • @susmithak5919
      @susmithak5919 2 роки тому

      Hi!
      print(R"what\'s your name?")
      Once you try this without giving comma (raw string), so that no need to define R

  • @nanitechinfo6188
    @nanitechinfo6188 6 років тому +1

    Sir every programming language most cases use / and \ this operators.My dout is why every programming language use only this why don't we create another operator is this possible.

    • @sundeepsaradhi
      @sundeepsaradhi  6 років тому

      hi nani
      thats how compiler have been designed so we are supposed to find the syntax and semantics while using the compiler.
      thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.

  • @arianagrande6137
    @arianagrande6137 4 роки тому

    can you show direct demo in system with every concept in every video'

  • @kundanatayi6113
    @kundanatayi6113 4 роки тому +1

    sir, raw string is not working in python 3.8.1 version is there any other syntax to this?

    • @sundeepsaradhi
      @sundeepsaradhi  4 роки тому +2

      HI
      In the STRING FORMATTING concept i have written the print function and please correct it with format function for alignments.
      LEFT JUSTIFY
      Wrong Statement : print("hello","30")
      CENTER ALIGNMENT
      Wrong Statement : print("hello","^30")
      Correct Statement : format("hello","^30")
      I am sorry for the mistake.

    • @hariharaselvamsankaranaray1971
      @hariharaselvamsankaranaray1971 4 роки тому

      Dat was wrong, Pls try
      print(R"Print any raw string now#$%^&")
      either upper or lower case and with or without spaces.

    • @GurvinderSingh-yb2ut
      @GurvinderSingh-yb2ut 4 роки тому +1

      please omit the comma after r. eg.
      print(r"What's your name")
      it will work

    • @bijitmajumdar2666
      @bijitmajumdar2666 4 роки тому

      its right sir

  • @charantangisetti6824
    @charantangisetti6824 3 роки тому

    Sir what textbook u follow please share it's name

  • @vvkwadhwa
    @vvkwadhwa 4 роки тому +1

    Hello Sundeep, Please correct your videos too. As it may lead to confusion if we just follow you.

  • @parmeshwarsuhag8678
    @parmeshwarsuhag8678 4 роки тому

    sir loss of precision problem m python return kya krega

  • @karunaemmanuel1496
    @karunaemmanuel1496 3 роки тому

    Hello sir..
    Print(R, "what\'s your name?")
    This gives me error.
    Error:
    name ' R ' is not define.

    • @karunaemmanuel1496
      @karunaemmanuel1496 3 роки тому

      Print("hello", "

    • @susmithak5919
      @susmithak5919 2 роки тому

      Hi!
      print(R"what\'s your name?")
      Once you try this without giving comma (raw string), so that no need to define R

  • @raveeshreyas5181
    @raveeshreyas5181 4 роки тому

    Thanks Sandeep sir

  • @aravinthkumar7552
    @aravinthkumar7552 4 роки тому

    Hi, your classes are interesting keep it up.

  • @usmanmehmood7614
    @usmanmehmood7614 3 роки тому

    thank you

  • @gnanendragnani1620
    @gnanendragnani1620 3 роки тому

    thank u sir

  • @nandipatisai
    @nandipatisai 4 роки тому

    sir please explain sorting topic also

  • @narayanagampa1112
    @narayanagampa1112 4 роки тому +1

    Sir very good explanation.but 1/10000=0.0001

  • @mominmishkat
    @mominmishkat 5 років тому +1

    thanku sir

  • @balamuralikrishnabiyyapu2810
    @balamuralikrishnabiyyapu2810 4 роки тому

    Suggest any reference book ?