Python print Function sep and end arguments | use of sep and end in print function | SuMyPyLab

Sdílet
Vložit
  • čas přidán 11. 02. 2023
  • Python print Function sep and end arguments | Use of sep and end in print function | SuMyPyLab
    The uses of sep and end arguments in Python print function. Learn the basics of sep and end arguments to control the output.
    python print sep
    python print end
    python print sep end
    python print separator line
    python print separated by comma
    python print separated by line
    python print separated by tab
    python print separated by space
    #pythonprogramming
    #pythontutorial
    #pythonforbeginners
    #python

Komentáře • 10

  • @siddhant9rockstar634
    @siddhant9rockstar634 Před 3 měsíci +1

    Best!!

    • @SuMyPyLab
      @SuMyPyLab  Před 3 měsíci +1

      Thanks a lot. Enjoy coding.

  • @Pankaj-Verma-
    @Pankaj-Verma- Před 4 měsíci +1

    Thanks.

  • @manoharsagunthalla9215
    @manoharsagunthalla9215 Před 10 měsíci +2

    How to print bold and font size bigger through code?

    • @SuMyPyLab
      @SuMyPyLab  Před 10 měsíci +3

      Hi! Thanks a lot for your interest. In Command Line Interface (CLI), it is possible to change the color of the font or changing the font to bold, but I think it is not possible to change the font size. Actually, the font and font-size is terminal dependent. There may some way out but I am not aware of it right now.
      For bold font or color fonts, you may try these:
      print('\033[1m' + 'Have a nice day (Bold)' + '\033[0m')
      print('\033[91m' + 'Have a nice day (RED)' + '\033[0m')
      print('\033[95m' + 'Have a nice day (PURPLE)' + '\033[0m')
      Here are few more color codes:
      UNDERLINE = '\033[4m'
      YELLOW = '\033[93m'
      GREEN = '\033[92m'
      BLUE = '\033[94m'
      PURPLE = '\033[95m'
      CYAN = '\033[96m'
      DARKCYAN = '\033[36m'
      END = '\033[0m'

  • @matmektep
    @matmektep Před 10 měsíci +1

    Nice explanation, but the background music is very annoying. Sorry for a negative feedback.

    • @SuMyPyLab
      @SuMyPyLab  Před 10 měsíci

      Thank you very much for your valuable feedback. I will keep this in mind. Bye the way, I didn't mind at all. Your honest comment will guide me in future. Wis you all the best.

  • @IMDash_freak002
    @IMDash_freak002 Před 10 měsíci +1

    I hate background music can you reupload this without music

    • @SuMyPyLab
      @SuMyPyLab  Před 10 měsíci

      I am really sorry to hear that you don't like the background music. Ok, I will keep this in mind next time. I may think of re-upload it without music if possible later. Thanks.