Skip to content

PLPAfrica/Feb_2024-Python-Hackathon1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

1. Functions & Fibonacci Sequence

Write a Python program to generate the Fibonacci sequence up to a specified term n. The Fibonacci sequence starts with 0 and 1, and each subsequent term is the sum of the two preceding terms.

Your program should:

  • Ask the user to input the value of n.
  • Create a function that takes n as a parameter and returns a list containing the first n terms of the Fibonacci sequence.
  • Print the generated Fibonacci sequence.

2. Python Conditional Statements

Example code is here

Create a Python program that:

  • Prompts a user to enter their age.
  • Uses a conditional statement to check if the age is greater than or equal to 18.
  • Prints You are eligible to vote if true, otherwise You are not eligible to vote

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages