week = [8 , 4 , 7 , 6 , 6 , 4 , 6]

print(week)

week

week[0]

week[1]

week[5]

sum(week)

Q1 = sum(week)

Q1

zoj = week[0]+week[2]+week[4]

fard = week[1]+week[3]+week[5]

print(zoj , fard)

print('Jame Ruzhaye Zoj:',zoj , 'Jame Ruzhaye Fard:' ,fard)

Q2 = [zoj , fard]

Q2

sum(week)/7

len(week)

haminjoori = [ 5, 6 , 2 ,2]

len(haminjoori)

sum(week)/len(week)

Q3 = round(sum(week)/len(week),2)

print(Q3)

for x in week:
print(x)

for x in week:
print(x*10)

Q4 = []

Q4

for x in week:
Q4.append(x*10)

Q4

adadha = [ 1 , 5 , 4]

adadha

adadha.append(2)

adadha

adadha.count(2)

week

week.count(6)

range(0,7)

for a in range(0,7):
print(a)

for a in range(4,9):
print(a)

week

for i in range(0,7):
print(week[i])

for j in week:
print(j)

for i in range(0,7):
if i >0:
print(week[i]*10)
else:
print(week[i]*15)

Q5 = []

for i in range(0,7):
if i >0:
Q5.append(week[i]*10)
else:
Q5.append(week[i]*15)

Q5

number = 16

number

if number == 16:
print('adad 16 ast')

if number == 18:
print('koochiktar')

Q5

Q5[5]+Q5[6]

Q5[-1]

Q5[-2]

Q6=round((Q5[-1]+Q5[-2])/sum(Q5)*100,3)

Q6

print('Q1:',Q1)
print('Q2:',Q2)
print('Q3:',Q3)
print('Q4:',Q4)
print('Q5:',Q5)
print('Q6:',Q6)