# 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 _ in range(30): if _ ==y_deraction: for _ in range(60): if _ == x_deraction: print(f"\033[{randomColorNumber}m{symbol}\033[0m",end ='') else: print("#", end = '') print("") else : for _ in range(60): print("#", end = '') print("") print(f"Coordinats of X: {x_deraction} Y: {y_deraction}") print("\n\n\n\n") for _ in range(10): screen()
############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ [30m-[0m########################################################### ############################################################ ############################################################ Coordinats of X: 0 Y: 27 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ########################[34mX[0m################################### ############################################################ ############################################################ ############################################################ Coordinats of X: 24 Y: 26 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ###[30mM[0m######################################################## ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 3 Y: 20 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ########################################################[35mR[0m### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 56 Y: 12 ############################################################ ############################################################ ###############################################[30mp[0m############ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 47 Y: 2 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ #######################################[33mI[0m#################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 39 Y: 16 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ########################[37mV[0m################################### ############################################################ ############################################################ ############################################################ Coordinats of X: 24 Y: 26 ############################################################ ###########[31mC[0m################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 11 Y: 1 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ###########################################################[30mr[0m ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 59 Y: 22 ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ #######################[36mU[0m#################################### ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ ############################################################ Coordinats of X: 23 Y: 12