Python daturlash maktabi 🐍
578 subscribers
343 photos
180 videos
83 files
389 links
Download Telegram
a=[1,2,3,4,5]
a[1:5]=[1]
print(a)
Anonymous Quiz
20%
[1,1]
25%
[1,2,3,4,1]
44%
[1,1,1,1,1]
11%
[1,5]
20:20 da 3 ta kichik masala tashlanadi.
Qatnashib o'z bilimingizni sinab ko'rishingiz mumkin !!!
Anonymous Poll
47%
Qatnashaman
34%
Qatnasha olmayman
19%
Farqi yo'q
a=[4,3,2][1]

print(a+1)
Anonymous Quiz
39%
[4,3,2,1,1]
17%
[3,1]
23%
4
21%
4,3,2,1,1
n= "ASU"
m= iter(n[::-1])
print(next(m)+next(m)+next(m))
Anonymous Quiz
7%
AAA
52%
USA
25%
UUU
16%
ASU
print('\\'.count('\\'))
Anonymous Quiz
18%
0
51%
1
31%
2
print(r'\\'.count('\\'))
Anonymous Quiz
23%
0
45%
1
32%
2
Python dan foydalanib internet tezligini o'lchash

🐍 Python
Qaysi ifodaning natijasi 3 ga teng !
Anonymous Quiz
26%
len(1,2,3)
18%
sum([1,2,3])
13%
min([1,2,3])
44%
len("dog")
a={1,"1",int(1.0),4/3,4//3}
print(len(a))
Anonymous Quiz
11%
2
33%
3
24%
4
33%
5
Python dan foydalanib .png formatdagi fotoni .jpg formatga o'zgartirish

🐍 Python
Quidagi ifoda Qaysi tipga mansub ?

print(type(print(9)))
Anonymous Quiz
12%
<class 'tuple'>
42%
<class 'int'>
19%
<class 'str'>
26%
<class 'NoneType'>
a,b,*c,d,e=range(10)
print(len(c))
Anonymous Quiz
15%
1
19%
2
38%
6
28%
10
a=[1,2,3]
print(sum(a,start=10))
Anonymous Quiz
39%
16
20%
15
32%
10
9%
6
print(1>>1>1)
Anonymous Quiz
28%
True
30%
False
26%
Error
16%
1
#JumaMuborak

from art import *
tprint("Juma muborak")


🐍 Python
a='p.y.t.h.o.n.'
print(*(a.split(sep=".",maxsplit=5)))
Anonymous Quiz
21%
'p' 'y' 't' 'h' 'o' 'n'
29%
p y t h o n
30%
'p' 'y' 't' 'h' 'o' 'n' '.'
19%
p y t h o n.
print(float('inf')-float('inf'))
print(float('inf')*float('inf'))
print(float('inf')*0)
Anonymous Quiz
23%
nan inf nan
28%
0 inf 0
41%
TypeError
8%
nan inf 0
Python👨‍💻 yordamida ekranni skrinshot qilish.

🐍 Python
Qaysi ifodaning qiymati 102 ga teng emas ?
a=5
Anonymous Quiz
15%
print(97+a)
29%
print("10"+str(a-3))
42%
print(str(a)+"97")
15%
print(str((a-3)+100))
a=[2,1,5,3]
b=a.sort()
print(b)
Anonymous Quiz
44%
[1,2,3,5]
29%
None
17%
[5,3,2,1]
10%
Error