The document contains a list of programming tasks to be solved using Python, including calculating volumes, averages, and sums, as well as creating patterns and handling user input for various mathematical problems. Each task is clearly defined with specific requirements, such as determining the number of desks needed for classrooms or calculating the area of geometric shapes. The tasks range from basic arithmetic operations to more complex logic involving conditional statements and loops.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views3 pages
Python Task1
The document contains a list of programming tasks to be solved using Python, including calculating volumes, averages, and sums, as well as creating patterns and handling user input for various mathematical problems. Each task is clearly defined with specific requirements, such as determining the number of desks needed for classrooms or calculating the area of geometric shapes. The tasks range from basic arithmetic operations to more complex logic involving conditional statements and loops.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
Pythonda mash qilish uchun masalalar
1. Kubning tomoni a ga teng. Kubning hajmini topish dasturini tuzing.
2. a, b, c, d sonlari berilgan. Ularning o‘rta arifmetigini topish dasturini tuzing. 3. Hafta raqami 1–7 oraliqda kiritilganda, hafta kunini ekranga chiqaruvchi dastur tuzing. 4. a va b sonlar berilgan. Agar ular musbat va yig‘indisi 100 dan katta bo‘lsa, a sonining b songa nisbatini, ular musbat va yig‘indisi 100 dan katta bo‘lmasa, a ning b ga ko‘paytmasini hisoblash dasturini tuzing. 5. Ikkita son berilgan. Agar birinchi son ikkinchisidan katta bo‘lsa, 1 ni, agar ikkinchi son birinchisidan katta bo‘lsa, 2 ni, agar ikkalasi teng bo‘lsa, 0 ni chiqaruvchi dastur tuzing. 6. S=11+13+15+…+49 yig‘indini hisoblash dasturini tuzing. 7. Ikki xonali toq sonlarning yig`indisini topish uchun Python dasturini yozing.
8. Maktab ma’muriyati 3 ta sinf uchun yangi matematika xonasi tashkil etishga
qaror qildi. Mashg‘ulotlar bir vaqtda o‘tkazilganligi sababli, har bir xonaga alohida parta sotib olinishi kerak. Bitta partada ikkitadan ortiq o‘quvchi o‘tira olmaydi. Har bir sinf o‘quvchilari soni ma’lum bo‘lsa, qancha parta sotib olish kerak? Foydalanuvchi tomonidan uchta qiymat – uchta sinf o‘quvchilari soni kiritiladi. 9. for dan foydalanib, belgilangan naqshni yarating. for siklidan foydalanib, quyidagi naqshni yaratish uchun Python dasturini yozing. 1. Books were brought to the library from two bookstores. n books were brought from the first store. k more books were brought from the second store than from the first store. How many books were brought to the library in total? Create a program to solve the problem. Values n and k are entered by the user.
2. The side of an equilateral triangle is equal to a. Write a
program to calculate its face S
3. The side of a square is n. Create a program to calculate his
face. 4. Two numbers a and b are given. Write a program that outputs the larger one first, then the smaller one.
5. Given three integers a, b and c. Make a program that
calculates the square of only the positive ones.
6. “*” lar yordamida uchburchak yasang.
*
**
***
****
7. “+”yordamida kvadrat yasang.
+++++
+++++
+++++
+++++
8. 12 numbers are given. Find the sum of negative numbers and odd numbers.