def get_input(number):
return input(f'Введите {number} натуральное число:')
def get_int(number=None):
if not number:
number = ''
result = get_input(number)
while not result.isdigit():
print('Ошибка.')
result = get_input(number)
return int(result)
def get_2_ints():
first = get_int('первое')
second = get_int('второе')
return first, second
my_ints = get_2_ints()
print(my_ints)
my_first_int, my_second_int = my_ints
print(my_first_int * 2)
print(my_second_int * 3)
for key, value in scene.items():
print(f'{key}\nlat: {value.lat}')
nc_file_path = '/'.join([basedir, 'filename.nc')
print(scene[nc_file_path].lat)
add = InlineKeyboardButton(text= 'Добавить в корзину',callback_data= f'add_{current_item}')