for i in range(1,5,1):
for j in range(1,5,1):
print('* ',end='')
print()
for i in range(1,5,1):
for j in range(1,i+1,1):
print('* ',end='')
print()
for i in range(1,5,1):
for j in range(1,5-i,1):
print(' ',end='')
for j in range(1,i+1,1):
print('* ',end='')
print()
name='ali ghorbani'
for i in range(len(name)):
if name[i]!=' ':
print(name[i],end='')
else:
break
l1=[0,1,0,1,1,1,0,1,1]
for i in range(len(l1)):
if l1[i]==1:
print('OK ',end='')
else:
continue
print('done')
print()
name=['ali','hasan','reza','ahmad','alireza','karim']
for i in range(len(name)):
print(name[i],end=' ')
if len(name[i])<5:
print('khoobi? ')
continue
elif len(name[i])<6:
print('chekhabar? ')
continue
break
$\sum_{i=0}^{n}(3i^2+1)$
n=2
s1=0
for i in range(0,n+1,1):
d=3*i**2+1
s1=s1+d
print(s1)
def f(x):
a=x**2
return a
f(2)
f(3)
def f(x,y):
return x**2+y