Dear python programmers, help the stupid beginner!
-----------eng--------- Dear python programmers, help the stupid beginner! It is necessary that the 20th line would output the generated numbers not in a column, but in one line. How to do it? -------------rus----------- Дорогие программисты на питоне, помогите глупому новичку! Необходимо, чтобы 20-я строка выводила сгенерированные числа не в столбце, а в одну строку. Как это сделать? -------------code------------ 1. #Password generator 2.# This program was created to generate complex passwords 3.import random 4.# Hissing for the exit 5.def x (): 6. x = input ("\ tTo exit - press ENTER") 7.# Hype for exit end 8.#Alphabet 9.ABC = str ("AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890") 10.start = input ("GENERATE PASSWORD? \ n:") 11.if start == "y": 12. num = (input ("How many characters should your password contain? \ n")) 13. print ("Password from" + num + "characters generated!") 14. print ("Result:") 15. high = len (ABC) 16. low = -len (ABC) 17. num = int (num) 18. for i in range (num): 19. pos = random.randrange (low, high) # Saves ABC [pos] 20. print (ABC [pos]) 21.print ("Write the result in a notepad and do not show it to anyone!") 22.x ()