Python daturlash maktabi 🐍
577 subscribers
343 photos
180 videos
83 files
389 links
Download Telegram
Forwarded from RoboContest.UZ
masalalar.pdf
1.2 MB
πŸ“š Robocontest.uz tizimidagi masalalar to’plami.

πŸ“– 130 masaladan tashkil topgan.
Masala mualliflari:
Sunatullo Hojiyev
Azimjon Mehmonali o'g'li
Sirojiddin
Dilshodbek Xo'jaqulov
Ganiev Asadullo

Yangilangan sana: 01.08.2020

@robocontest
royhat=['salom','python','dasturlash','maktabi']
print(royhat[-2][3:6])
Anonymous Quiz
46%
tur
28%
mak
16%
hon
10%
stu
class odam:
def __init__(self,id):
self.id=id coder=odam(100) coder.__dict__['yosh']=49 print(coder.yosh+len(coder.__dict__))
Anonymous Quiz
18%
50
33%
51
36%
149
14%
150
x=259.0
y=259
print(x is y,x==y)
Anonymous Quiz
38%
True True
21%
True False
21%
False False
20%
False True
a=[1,2,3,4,5]
b=range(3,8,2)
print(sum(a)-sum(b))
Anonymous Quiz
23%
2
19%
4
41%
0
18%
TypeError
πŸ‘1
num=[1,2,3]
num.append([4,5,6])
print(len(num))
Anonymous Quiz
24%
4
14%
5
57%
6
5%
7
a=[1,2,3]
print(sum(range(len(a))))
Anonymous Quiz
12%
15
16%
12
40%
6
33%
3
​#Fullstack #Backend #Frontend

Full - stack dasturlash o'z ichiga front - end va backend qismlarni qamrab oladi. 

🐍 Python
name1=['Amir','Momin','Ali','Ziyo']
name2=[name.upper() for name in name1]
print(name2[3][2])
Anonymous Quiz
33%
l
24%
Z
36%
Y
7%
y
a=4*0.1==0.4
b=3*0.1==0.3
print(a+b==a-b)
Anonymous Quiz
35%
True
65%
False
a="thanks all"
print("%s"%a[3:5])
Anonymous Quiz
30%
nks
30%
snk
34%
nk
6%
ks
print(9+-+6)
Anonymous Quiz
9%
9
34%
3
18%
15
39%
TypeError
a='assalom'
print(a.rfind('a'))
Anonymous Quiz
20%
0
30%
2
26%
0 3
25%
3
x=[[0*2]]*2
x[0][0]=1
print(x[0][0]+x[1][0])
Anonymous Quiz
20%
1
26%
2
28%
10
27%
SyntaxError
a=[5,10,15,20,25]
del a[::2]
print(*a)
Anonymous Quiz
22%
10 20
44%
15 20 25
25%
5 15 25
10%
5 10
a=[1,2,3]
b=a; a.append(4)
print(sum(b)+len(b))
Anonymous Quiz
14%
9
37%
10
35%
14
14%
SyntaxError
print('{1}{0}'.format(1,0))
Anonymous Quiz
30%
10
29%
01
30%
{1}{0}
11%
{0}{1}
print(round(123,-2))
Anonymous Quiz
21%
123.0
24%
100
34%
1.23
21%
121