Can you change the output font using print statement in Python?
Apr 12, 2021
Yes… we can change the output font colour using python
Code1:
TGREEN = ‘\033[34m’
a=input()
print (TGREEN,a)
Output:
Code2:
TCOLOR = ‘\033[35m’
a=input()
print (TCOLOR,a)
Output:
You Can Change Font Style in Python IDLE
Step1:Open your IDLE
Step2:Click Options
Step3:Click Configure IDLE
Step4:Now Play with fonts ..😂