Skip to content

This Python code will generate a Fibonacci sequence either N numbers long, or up to a value N.

Notifications You must be signed in to change notification settings

ThePrankMonkey/Fibonacci-Sequence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Fibonacci-Sequence

This Python code will generate a Fibonacci sequence either N numbers long, or up to a value N.

When prompted, the user should enter either 'count' or 'value' for the first question, and any positive integer for the second.

'count' will run through the Fibonacci sequence and continue to print values until it has printed 'count' amount of values. 'value' will run through the Fibonacci sequence and print values until it hits one that it equal or greater than the supplied value.

I've added some safety to the program, namely that it will spit out an error on misspelled answers to the first question. It will also convert anything to lowercase as a precaution.

A live demonstration can be found at: http://repl.it/I75

About

This Python code will generate a Fibonacci sequence either N numbers long, or up to a value N.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages