Is it possible to debug this? /u/TheEyebal Python Education

I am coding the Fibonacci sequence in pycharms and I had some trouble with programming it. I had to look up a tutorial for guidance, and though I get it I want to have a deeper understanding of it.

def fib(n): a = 0 b = 1 fib_list = [a, b] for i in range(2, n): c = a + b # 0 + 1 a = b # 1 = 1 b = c # 1 = 1 fib_list.append(c) return fib_list print(fib(10)) 

is it possible to use the debugger in pycharm to see inside it and how the process is ran?

submitted by /u/TheEyebal
[link] [comments]

​r/learnpython I am coding the Fibonacci sequence in pycharms and I had some trouble with programming it. I had to look up a tutorial for guidance, and though I get it I want to have a deeper understanding of it. def fib(n): a = 0 b = 1 fib_list = [a, b] for i in range(2, n): c = a + b # 0 + 1 a = b # 1 = 1 b = c # 1 = 1 fib_list.append(c) return fib_list print(fib(10)) is it possible to use the debugger in pycharm to see inside it and how the process is ran? submitted by /u/TheEyebal [link] [comments] 

I am coding the Fibonacci sequence in pycharms and I had some trouble with programming it. I had to look up a tutorial for guidance, and though I get it I want to have a deeper understanding of it.

def fib(n): a = 0 b = 1 fib_list = [a, b] for i in range(2, n): c = a + b # 0 + 1 a = b # 1 = 1 b = c # 1 = 1 fib_list.append(c) return fib_list print(fib(10)) 

is it possible to use the debugger in pycharm to see inside it and how the process is ran?

submitted by /u/TheEyebal
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *