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 _ in range(30):
  33. if _ ==y_deraction:
  34. for _ in range(60):
  35. if _ == x_deraction:
  36. print(f"\033[{randomColorNumber}m{symbol}\033[0m",end ='')
  37.  
  38. else:
  39. print("#", end = '')
  40.  
  41. print("")
  42. else :
  43. for _ in range(60):
  44. print("#", end = '')
  45.  
  46. print("")
  47.  
  48. print(f"Coordinats of X: {x_deraction} Y: {y_deraction}")
  49.  
  50. print("\n\n\n\n")
  51.  
  52. for _ in range(10):
  53. screen()
  54.  
Success #stdin #stdout 0.13s 14320KB
stdin
stdout
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
-###########################################################
############################################################
############################################################
Coordinats of X: 0    Y: 27





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
########################X###################################
############################################################
############################################################
############################################################
Coordinats of X: 24    Y: 26





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
###M########################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 3    Y: 20





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
########################################################R###
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 56    Y: 12





############################################################
############################################################
###############################################p############
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 47    Y: 2





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
#######################################I####################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 39    Y: 16





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
########################V###################################
############################################################
############################################################
############################################################
Coordinats of X: 24    Y: 26





############################################################
###########C################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 11    Y: 1





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
###########################################################r
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 59    Y: 22





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
#######################U####################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 23    Y: 12