
Variblas
Presentation
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
Fayzullo Mamajonov
Used 4+ times
FREE Resource
5 Slides • 5 Questions
1
Pythonda o`zgaruvchi turlari
(variables type in python)
2
Pythonda o`zgaruvchi turlari
ID | Varible type | Exemple |
|---|---|---|
1 | int() | butun sonlar (25,10,-3,0) |
2 | float() | haqiqiy sonlar (1.2,5.3,-7.2,4.0) |
3 | string() | matnlar ( txt = "Assalom aleykum") |
4 | bool() | mantiqiy qiymat (True, False) |
5 | list() | ro`yxat (my_list = [1,2,3,4,...]) |
6 | tuple() | o`zgarmas ro`yxat (my_tup = (1,2,3,..)) |
7 | set() | tartibsiz va takrorlanmas (my_set = {"a","b","c"}) |
8 | dict() | kalit-qiymat ( person = { |
3
O`zgaruvchi nima?
O`zgaruvchi(variable) - kompyuter xotirasida ma`lum bir qiymatni saqlash uchun ajratilgan joy.
Qiymatlar - son,matn,ro`yxat va boshqa ko`rinishda bo`lish mumkin.
4
Pythonda o`zgaruvchilar qanday e`lon qilinadi?
Python dasturlash tilida o`zgaruvchi turi avtomatik ravishda aniqlanadi.
Quidagi misolga qarang!
5
Pythonda o`zgaruvchilar chop etish
6
Multiple Choice
Qaysi variant int() turiga tegishli?
n = "apple"
n = 17
n = 5.7
n = 7.0
7
Multiple Choice
Qaysi variant float() turiga tegishli
n = 7.0
n = 'apple'
n = 25
n = True
8
Multiple Choice
Qaysi qiymat bool() turiga tegishli?
n = -25
n = "apple"
n = False
n = 7.5
9
Multiple Choice
Qaysi qiymat str() turiga tegishli?
n = -16
n = "apple"
n = 0.5
n = True
10
Multiple Choice
O`zgaruvchi nima?
Kompyuter xotirasida ma’lumotlarni saqlash uchun ajratilgan nomlangan joy
Raqamlarni saralash uchun maxsus buyruqlar to‘plami
Faqat matn ma’lumotlarini saqlaydigan konteyner
Dasturdagi barcha ma’lumotlarni avtomatik tarzda o‘chirib tashlaydigan funksiya
Pythonda o`zgaruvchi turlari
(variables type in python)
Show answer
Auto Play
Slide 1 / 10
SLIDE
Similar Resources on Wayground
7 questions
Deret Geometri
Presentation
•
10th Grade
6 questions
Hakikat Geografi
Presentation
•
10th Grade
8 questions
Panjang Vektor dan Tiga Titik yang Segaris
Presentation
•
10th Grade
8 questions
Funcțiile strcat și strncat șiruri de caractere
Presentation
•
11th Grade
8 questions
Module 1 Document Investigation
Presentation
•
10th Grade
8 questions
Opinion
Presentation
•
10th Grade
9 questions
Intro to Matrices
Presentation
•
10th Grade
6 questions
Barisan dan Deret
Presentation
•
10th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade