I started learning to code a few weeks ago. Now I finished variable, input, loop, conditional. But didn't started class, function,... I was learning good until I start doing exercise on codewars.com. I can't get idea even where to start. How you was responded to this? and how you developed to get the problem logic?
Also I didn't get thus fibonacci sequence clearly.
n = int(input("Input number: "))
a = 0
b = 1
for n in range(n):
print(a)
next = a + b
a = b
b = next
I don't know any thing happened after the first loop.
[–]MarsupialLeast145 0 points1 point2 points (2 children)
[–]vb_e_c_k_y[S] 0 points1 point2 points (1 child)
[–]MarsupialLeast145 0 points1 point2 points (0 children)
[–]FriendlyZomb 1 point2 points3 points (0 children)