# your code goes here #0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg #простезавдання_1_9 import random def screen (): randomNumberX = random.randint(1,60) randomNumberY = random.randint(1,30) randomColorNumber = random.randint(30,37) x_inp = randomNumberX #input("Write a coordinats of x in range(60): ") y_inp = randomNumberY #input("Write a coordinats of y in range(30): ") x_deraction = int(x_inp) - 1 y_deraction = int(y_inp) - 1 x_position = 0 y_position = 0 symbols = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890@#$_&-+" symbol = random.choice(symbols) for i in range(30): if i==y_deraction: for j in range(60): if j == x_deraction: print(f"\033[{randomColorNumber}m{symbol}\033[0m",end ='') else: print("#", end = '') j+=1 print("") else : for j in range(60): print("#", end = '') j +=1 print("") i +=1 print(f"Coordinats of X: {x_deraction} Y: {y_deraction}") print("\n\n\n\n") for i in range(10): screen()
10 3
############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################[34mp[0m############################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 28 Y: 6 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ###################################################[30mx[0m######## ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 51 Y: 23 ##################################################[37mC[0m######### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 50 Y: 0 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################[33m$[0m############################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 28 Y: 9 ##################################[36mz[0m######################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 34 Y: 0 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ #######################################[34mb[0m#################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 39 Y: 23 ############################################################ ############################################################ ############################################################ ############################################################ #####################[30mq[0m###################################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 21 Y: 4 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ###########[32ml[0m################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 11 Y: 16 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ################################################[36mr[0m########### ############################################################ ############################################################ ############################################################ Coordinats of X: 48 Y: 26 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############[32mO[0m############################################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 12 Y: 9