codingdesirous / Feb_2024-Python-Hackathon1

This my first hackathon python project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

This my first hackathon python project


Languages

Language:Python 100.0%