Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_next_from_list_a_up():
- if not hasattr(get_next_from_list_a_up, "idx"):
- get_next_from_list_a_up.idx = 0
- if not get_next_from_list_a_up.idx < len(list_a_up):
- get_next_from_list_a_up.idx = 0
- value_to_return = list_a_up[get_next_from_list_a_up.idx]
- get_next_from_list_a_up.idx += 1
- return value_to_return
- # def b_upp(b_up):
- # pass
- #max_x = int(input())
- #max_y = int(input())
- #max_pass = int(input())
- # list_draft = []
- # # Генериране на необходимите символи 35 - 55
- list_a_up = []
- for a_up in range(35, 56):
- list_a_up.append(chr(a_up)) # ['#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7']
- # # Генериране на необходимите символи 64 - 96
- # list_b_up = []
- # for b_up in range(64, 97):
- # list_b_up.append(chr(b_up)) # ['@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', '`']
- # # Генериране на необходимите числа х = 1 - а
- # list_x = []
- # for x in range(1, a + 1):
- # list_x.append(x)
- # # Генериране на необходимите числа y = 1 - b
- # list_y = []
- # for y in range(1, b + 1):
- # list_draft.append(y)
- print(get_next_from_list_a_up())
- print(get_next_from_list_a_up())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement