Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Liczby(a,b):
- liczby_tab=[]
- zakres=(b-a+1)
- index=1
- for i in range(a, b+1):
- liczby_tab.append(i)
- j = 0
- k = 1
- for i in range (zakres):
- a= (str(liczby_tab[j:k]))
- print (a.replace("[" ,"").replace("]","").replace(",",""))
- index+=1
- j=k
- k+=index
- if int(k-index)>b:
- break
- Liczby(1,28)
Advertisement
Add Comment
Please, Sign In to add comment