-
a
-
a=2%3
print(a)
____________________________
-
a=0
b=1
while
a<=5:
a+=b
print(a)
____________________________
-
a=0
b=1
while
a<5:
a+=b
print(a)
____________________________
-
a=1
while
(bool(a)):
a+=1
print(a)
____________________________
-
a=1
while
a!=5:
a+=1
print(a)
____________________________
-
a=len('int')
a**=a
print(a)
____________________________
-
a=len('/')
print(a*3)
____________________________
-
while
:
print(1)
else:
print(0)
____________________________
-
a='2'=='2.0'
print(a)
____________________________
-
a=False
print(bool(a))
____________________________
-
fruits = [“apple”,
“banana”, “cherry”]
for x in
fruits:
if x ==
“banana”:
break
print(x)
____________________________
-
i =
0
while i <
3:
i +=
1
if i ==
1:
continue
print(i)
____________________________
= int(input())
print(a,
a*2, a*3, a*4, a*5, sep='-')
____________________________
-
if 1:
print(0)
____________________________
-
if
(a==a):
print(1)
else:
print(0)
____________________________
-
while
10==10:
print(1)
break
else:
print(0)
____________________________
-
a=True==False
print(a)
____________________________
-
while
1:
print(6)
break
else:
print(0)
____________________________
-
a=[0]
if
a:
print('a-t')
____________________________
-
for i in
range(int(False), int(True)+int(True)):
print(i)
____________________________
-
for i in
2:
print(i)
____________________________
-
a=12
b=a
b+=a
print(b%a)
____________________________
-
a=1
b=0
b+=a
print(bool(b))
____________________________
-
a=2
b=2
a+b
print(a+b*b)
____________________________
-
a=(2==2) and not
(4==5)
print(a)
____________________________
num =
float(input("Сан енгіз: "))
if num >
0:
result =
"Оң
сан енгізілді"
elif num
< 0:
result =
"Теріс
сан енгізілді"
else:
result =
"Нөл
енгізілді"
print(result)
a =
25
if a >
10:
print(“10-нан үлкен”)
if >
20:
print(“20-дан да үлкен”)
else:
print(“10-нан кіші”)
x =
int(input("Бүтін сан енгіз "))
if x == 2 or
x == 3 or x == 5 or x == 7 or x == 11:
print("5
санның біреуі енгізілді ")
else:
print("5
санның ешқайсы енгізілмеді")
m =
input("Мәтін енгіз : ")
while m
!= "":
n = int(input("Неше рет қайталау керек?
"))
for i in
range(n):
print(m)
m =
input("Мәтін енгіз : ")
x=int(input())
try:
print(x)
except:
print("Айнымалы жарияланбады")
from random
import randint
import
os
b=randint(1,10)
a=int(input('sandi tap '))
if
b==a:
print('you
won')
else:
print(os.remove(''))
def
myfunc(a):
a = a +
2
a = a *
2
return
a
print
(myfunc(2))
def f(value,
values):
v =
1
values[0] =
44
t =
3
v = [1, 2,
3]
f(t,
v)
print(t,
v[0])