Huzuridagi fiskal institut


Download 14.7 Kb.
Sana23.03.2023
Hajmi14.7 Kb.
#1287614
Bog'liq
Yusupov Azimjon 2-lobaratoriya (2)


O‘ZBEKISTON RESPUBLIKASI SOLIQ QO‘MITASI


HUZURIDAGI FISKAL INSTITUT
Matematika va axborot texnologiyalari” kafedrasi
“Iqtisodiyotda dasturlash” fanidan
№2 - laboratoriyaishi
Bajardi; Yusupov Azimjon
SST 02-22 guruh

Qabulqildi: Sotvoldiyev D.M.


Toshkent – 2022
18-Variant
Masalaning sharti
Yuqoridagi dasturga o'zgartirish kiriting: konsolga barcha talabalarni emas, foydalanuvchi so'ragan talaba haqida ma'lumot bering. Agar talaba sizning lug'atingizda mavjud bo'lmasa, "Bizda bu talaba haqida ma'lumot yo'q" degan xabarni chiqaring.(17 varyantga qarang!)

Javob:
student_info = {


"Fiskal Talabasi" : ['Bahranov davronbek','Tolibjovov Nurillo'],
"Yoshi" : [19, 18 ],
"Millati" : ['Rus', 'Ozbek'],
"Toplagan bali" : [105, 90] }

student_prompt = (str(input('Talaba ismini kiriting ')))

student_name_list = []
for key in student_info:
if key == 'Fiskal Talabasi':
student_name_list.append(student_info[key])

for name in student_name_list:


if student_prompt in name:
temp = list(student_info.items())
res = [idx for idx, key in enumerate(temp) if key[0] == student_prompt]
print(str(res))
else:
print('Bizda bu talaba haqida malumot yoq')
Tekshirish:
Talaba ismini kiriting Yusupov Azimjon
Bizda bu talaba haqida malumot yoq
Download 14.7 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling