COMPUTER PROJECT (TERM II)
PYTHON PROGRAMS
Student Name: Harshika Das
Class: IX
Subject: Artificial Intelligence (Code – 417)
Unit: Introduction to Python
Session: 2025 – 2026
Software Used: Python IDLE
Acknowledgement
I would like to express my sincere gratitude to my subject teacher for providing valuable guidance and
encouragement throughout the completion of this project. I am also thankful to my school for providing
the necessary resources and learning environment. This project has helped me to enhance my
understanding of Python programming and logical thinking skills.
Student Name: Harshika Das
Signature: ____________________
Index
Sl. No. Contents
1 Introduction
2 Fibonacci Sequence Generator
3 Table Generator
4 Factorial of a Number
5 Simple Greeting with Personalization
6 Inverse Number Generator
7 Uppercase Conversion and Voting Eligibility
8 Conclusion
9 Bibliography
Introduction
Python is a high-level, interpreted programming language known for its simplicity and readability. It is
widely used in artificial intelligence, data science, web development, and automation. This project
focuses on basic Python programs using loops, conditional statements, and user input to build a strong
foundation in programming.
Fibonacci Sequence Generator
a = 0 b = 1 n = int(input("Enter number of terms: ")) count = 0 while count < n: print(a, end=" ") a, b = b, a
+ b count += 1
Table Generator
num = int(input("Enter number: ")) limit = int(input("Enter limit: ")) for i in range(1, limit + 1): print(num, "x",
i, "=", num * i)
Factorial of a Number
num = int(input("Enter a number: ")) fact = 1 while num > 0: fact *= num num -= 1 print("Factorial is:", fact)
Simple Greeting with Personalization
name = input("Enter your name: ") age = int(input("Enter your age: ")) print("Hello, my name is", name,
"and I am", age, "years old.")
Inverse Number Generator
num = int(input("Enter a number: ")) rev = 0 while num > 0: rev = rev * 10 + num % 10 num //= 10
print("Reverse number is:", rev)
Uppercase Conversion and Voting Eligibility
name = input("Enter your name: ").upper() age = int(input("Enter your age: ")) if age >= 18: print("Hello",
name, ", you are eligible to cast your vote") else: print("Hello", name, ", you are not eligible to cast your
vote")
Conclusion
Through this project, I have learned how to write basic Python programs using loops, conditions, and
user-defined inputs. This project has strengthened my logical thinking and problem-solving skills, which
will be useful in advanced programming and artificial intelligence concepts.
Bibliography
• NCERT Artificial Intelligence Textbook – Class IX
• [Link]