• Jun 1, 2023 •CodeCatch
0 likes • 4 views
from colorama import init, Fore # Initialize colorama init() print(Fore.RED + "This text is in red color.") print(Fore.GREEN + "This text is in green color.") print(Fore.BLUE + "This text is in blue color.") # Reset colorama print(Fore.RESET + "This text is back to the default color.")
• Apr 21, 2023 •sebastianagauyao2002-61a8
0 likes • 3 views
print("hellur")
• Jun 16, 2024 •lagiath
0 likes • 1 view
print('hello, world')
• Nov 19, 2022 •CodeCatch
from math import pi def rads_to_degrees(rad): return (rad * 180.0) / pi rads_to_degrees(pi / 2) # 90.0
filename = "data.txt" data = "Hello, World!" with open(filename, "a") as file: file.write(data)
• Nov 18, 2022 •AustinLeath
0 likes • 8 views
#question1.py def rose(n) : if n==0 : yield [] else : for k in range(0,n) : for l in rose(k) : for r in rose(n-1-k) : yield [l]+[r]+[r] def start(n) : for x in rose(n) : print(x) #basically I am printing x for each rose(n) file print("starting program: \n") start(2) # here is where I call the start function