Python print Function sep and end arguments | use of sep and end in print function | SuMyPyLab
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
Best!!
Thanks a lot. Enjoy coding.
Thanks.
So nice of you.
How to print bold and font size bigger through code?
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'
Nice explanation, but the background music is very annoying. Sorry for a negative feedback.
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.
I hate background music can you reupload this without music
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.