fork download
  1. # your code goes here
  2. #0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg
  3.  
  4.  
  5. #простезавдання_1_9
  6.  
  7. import random
  8.  
  9. def screen ():
  10. randomNumberX = random.randint(1,60)
  11.  
  12. randomNumberY = random.randint(1,30)
  13.  
  14. randomColorNumber = random.randint(30,37)
  15.  
  16. x_inp = randomNumberX #input("Write a coordinats of x in range(60): ")
  17.  
  18. y_inp = randomNumberY #input("Write a coordinats of y in range(30): ")
  19.  
  20. x_deraction = int(x_inp) - 1
  21.  
  22. y_deraction = int(y_inp) - 1
  23.  
  24. x_position = 0
  25.  
  26. y_position = 0
  27.  
  28. symbols = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890@#$_&-+"
  29.  
  30. symbol = random.choice(symbols)
  31.  
  32. for i in range(30):
  33. if i==y_deraction:
  34. for j in range(60):
  35. if j == x_deraction:
  36. print(f"\033[{randomColorNumber}m{symbol}\033[0m",end ='')
  37.  
  38. else:
  39. print("#", end = '')
  40. j+=1
  41. print("")
  42. else :
  43. for j in range(60):
  44. print("#", end = '')
  45. j +=1
  46. print("")
  47. i +=1
  48. print(f"Coordinats of X: {x_deraction} Y: {y_deraction}")
  49.  
  50. print("\n\n\n\n")
  51.  
  52. for i in range(10):
  53. screen()
  54.  
Success #stdin #stdout 0.16s 14160KB
stdin
10
3

stdout
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################p###############################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 28    Y: 6





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
###################################################x########
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 51    Y: 23





##################################################C#########
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 50    Y: 0





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################$###############################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 28    Y: 9





##################################z#########################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 34    Y: 0





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
#######################################b####################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 39    Y: 23





############################################################
############################################################
############################################################
############################################################
#####################q######################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 21    Y: 4





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
###########l################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 11    Y: 16





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
################################################r###########
############################################################
############################################################
############################################################
Coordinats of X: 48    Y: 26





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############O###############################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 12    Y: 9