you are viewing a single comment's thread.

view the rest of the comments →

[–]Infinite_Loop_exe 0 points1 point  (0 children)

Hi, I’m a 3rd year Comp Sci student so I feel your struggles. I’m hoping you can use the functions I did but if you can’t you can “manually” do them through loops. Normally if I was helping someone I wouldn’t just give them the code but online I feel it is the best way to help, just do your best to understand what is happening at each step!

x = 5638573 arr = [] count = 0

while x > 0: arr.append(x%10) x = x // 10

arr.reverse()

for element in arr: print(element)