Oct-03-2017, 03:32 PM
Greetings .. I just started learning phyton. but I did not solve a problem .. I created a new list .. this list is contains numbers .. How can I manipulate the numbers in the list ??
for example:
list =[1234567,1234568,1234569]
exm . 1234567;
1*3+2+3*3+4+5*3+6+7*3
int(i[0])*3+int(i[1])+int(i[2])*3+int(i[3])+int(i[4])*3+int(i[5])+int(i[6])*3
i can't solve this.
barkod_numarasi=input("barkod numarası girelim") kac_tekrar=input("kaç tekrar olsun") while True: if not barkod_numarasi: print("boş bırakılamaz") break elif len(barkod_numarasi) < 7 or len(barkod_numarasi) > 7: print("barkod numarası 7 'den küçük olamaz") break else: print("şimdi hesaplanıyor..") liste = [i for i in range(int(barkod_numarasi), int(barkod_numarasi) + int(kac_tekrar))] print(liste) breakand now i created a list.. great! but how can i the manipulate the numbers?
for example:
list =[1234567,1234568,1234569]
exm . 1234567;
1*3+2+3*3+4+5*3+6+7*3
int(i[0])*3+int(i[1])+int(i[2])*3+int(i[3])+int(i[4])*3+int(i[5])+int(i[6])*3
i can't solve this.
