print(input()[::-1])
import string
print(string.ascii_letters)
for i in range(10):
print(ord(input()))
lst = ['hello', 'John', '12', 'gravity']
print(lst)
lst.remove('12')
print(lst)
lst = ['hello', 'John', '12', 'gravity']
print(' '.join(lst))
for i in lst:
if i == '12':
i = "o'zgartirilgan"
print(i, end=' ')
class Cars:
emp_count = 0
def __init__(self, car_name, cost):
self.car_name = car_name
self.cost = cost
Cars.emp_count += 1
def display_count_car(self):
print('Mashinalar_soni: %d' % Cars.emp_count)
def display_car(self):
print('Mashina_markasi: {}. narxi: {}'.format(self.car_name, self.cost))
country = {"O'zbekiston": 'Boy tarixga ega davlat', 'AQSh': 'Post-industrial davlat',
"Buyuk Britaniya": 'Monarx davlat',
1: 'Afrika davlati'}
for i in country:
if input() == i:
print(country[i])
def sort_number(lst: list):
for i in range(len(lst)):
lowest = i
for j in range(i + 1, len(lst)):
if lst[j] < lst[lowest]:
lowest = j
lst[i], lst[lowest] = lst[lowest], lst[i]
return lst
lists = list(map(int, input().split()))
print(sort_number(lists))
def sort_number(lst: list):
for i in range(len(lst)):
lowest = i
for j in range(i + 1, len(lst)):
if lst[j] > lst[lowest]:
lowest = j
lst[i], lst[lowest] = lst[lowest], lst[i]
return lst
lists = list(map(int, input().split()))
print(sort_number(lists))
a = input()
dic = {'1': 'bir', '2': 'ikki', '3': 'uch', '4': "to'rt", '5': 'besh', '6': 'olti', '7': 'yetti', '8': 'sakkiz',
'9': "to'qqiz",
'10': "o'n",
'20': 'yigirma', '30': "o'ttiz", '40': 'qirq', '50': 'ellik', '60': 'oltmish', '70': 'yetmish', '80': 'qirq',
'90': "to'qson"}
print(dic[a[0]] + ' ming ' + dic[a[1]] + ' yuz ' + dic[str(int(a[2]) * 10)] + ' ' + dic[a[3]])
a = int(input())
print(str(a)[0], str(a)[1])
fruit = {'olma': 'Olma tarkibida temir moddasi bor', 'anor': 'Rangi qizil', 'behi': 'Kuzda pishadi'}
for i in fruit:
if input() == i:
print(fruit[i])
a = input()
dic = {'1': 'bir', '2': 'ikki', '3': 'uch', '4': "to'rt", '5': 'besh', '6': 'olti', '7': 'yetti', '8': 'sakkiz',
'9': "to'qqiz",
'10': "o'n",
'20': 'yigirma', '30': "o'ttiz", '40': 'qirq', '50': 'ellik', '60': 'oltmish', '70': 'yetmish', '80': 'qirq',
'90': "to'qson"}
print(dic[a[0]] + ' yuz ' + dic[str(int(a[1]) * 10)] + ' ' + dic[a[2]])
16. class Buildings:
bld_count = 0
def __init__(self, bino_nomi, bino_uzunligi):
self.bino_nomi = bino_nomi
self.bino_uzunligi = bino_uzunligi
Buildings.bld_count += 1
def building(self):
print('Mashinalar_soni: %d' % Buildings.bld_count)
Do'stlaringiz bilan baham: |