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

Поделиться
HTML-код
  • Опубликовано: 10 ноя 2024

Комментарии • 12

  • @Pankaj-Verma-
    @Pankaj-Verma- 8 месяцев назад +1

    Thanks.

    • @SuMyPyLab
      @SuMyPyLab  8 месяцев назад +1

      So nice of you.

  • @siddhant9rockstar634
    @siddhant9rockstar634 7 месяцев назад +1

    Best!!

    • @SuMyPyLab
      @SuMyPyLab  7 месяцев назад +1

      Thanks a lot. Enjoy coding.

  • @manoharsagunthalla9215
    @manoharsagunthalla9215 Год назад +2

    How to print bold and font size bigger through code?

    • @SuMyPyLab
      @SuMyPyLab  Год назад +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 Год назад +2

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

    • @SuMyPyLab
      @SuMyPyLab  Год назад

      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 Год назад +1

    I hate background music can you reupload this without music

    • @SuMyPyLab
      @SuMyPyLab  Год назад

      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.

  • @ShadowwGamerOfficial
    @ShadowwGamerOfficial 18 дней назад

    Not the Tom, di•k 😂😂😂

    • @SuMyPyLab
      @SuMyPyLab  18 дней назад

      Thanks for your comment. Sorry to say that I am unable to understand what you really mean. Anyway thank you again.