Think of me trying to make a program that goes on to calculate Fibonacci numbers in a sequential order forever. I want to make the command produce output and treat the output as an input by performing some operation on it. How would I write such a program in python and how would I get it to stop if it’s not going to automatically stop after a certain point?
So I have tried manually inputting values but don’t know how to do it automatically as I am newbie.
New contributor
Sanskar Anand is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.