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 _ in range(10):
  53. screen()
  54.  
Success #stdin #stdout 0.16s 14240KB
stdin
10
3

stdout
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
#################################################W##########
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 49    Y: 8





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
###I########################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 3    Y: 11





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
#######################################6####################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 39    Y: 21





############################################################
############################################################
############################################################
#############################U##############################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 29    Y: 3





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
#########y##################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 9    Y: 15





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





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
#########################4##################################
############################################################
############################################################
############################################################
Coordinats of X: 25    Y: 26





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
######################################################Z#####
Coordinats of X: 54    Y: 29





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
i###########################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 0    Y: 13





############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
##############p#############################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
############################################################
Coordinats of X: 14    Y: 11