Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

print red in python

import os

# System call
os.system("")

# Class of different styles
class style():
    BLACK = '33[30m'
    RED = '33[31m'
    GREEN = '33[32m'
    YELLOW = '33[33m'
    BLUE = '33[34m'
    MAGENTA = '33[35m'
    CYAN = '33[36m'
    WHITE = '33[37m'
    UNDERLINE = '33[4m'
    RESET = '33[0m'

print(style.YELLOW + "Hello, World!")
Comment

PREVIOUS NEXT
Code Example
Python :: no module psycopg2 
Python :: import beautifulsoup 
Python :: python shebang 
Python :: pip3 upgrade 
Python :: if file exists delete python 
Python :: pytorch check if using gpu 
Python :: python install matplotlib 
Python :: converting string to datetime pandas 
Python :: sort dataframe by column 
Python :: to_csv without index 
Python :: pip install mysqldb 
Python :: python open url in incognito 
Python :: python 1 second delay 
Python :: python list files in current directory 
Python :: zsh: command not found: virtualenv 
Python :: remove python ubuntu 
Python :: tqdm pandas apply in notebook 
Python :: Pandas: How to Drop Rows that Contain a Specific String 
Python :: for loop django template count 
Python :: meter to cm in python 
Python :: download from url using urllib python 
Python :: window size cv2 
Python :: matplotlib bar chart from dictionary 
Python :: update numpy in python 
Python :: save plot as image python 
Python :: sklearn.utils.bunch to dataframe 
Python :: python get all variables in class 
Python :: pandas tuple from two columns 
Python :: DeprecationWarning: executable_path has been deprecated, please pass in a Service object 
Python :: Write a line to a text file using the write() function 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =