Welcome to this repository! This project contains fundamental Python concepts and beginner-level practice programs to help reinforce core skills.
- What is Python, and why is it popular?
- What is an interpreter in Python?
- What are pre-defined keywords in Python?
- Can keywords be used as variable names?
- What is mutability in Python?
- Why are lists mutable, but tuples are immutable?
- What is the difference between
==
andis
operators in Python? - What are logical operators in Python?
- What is type casting in Python?
- What is the difference between implicit and explicit type casting?
- What is the purpose of conditional statements in Python?
- How does the
elif
statement work? - What is the difference between
for
andwhile
loops? - Describe a scenario where a
while
loop is more suitable than afor
loop.
- Write a Python program to print
"Hello, World!"
- Write a Python program that displays your name and age
- Write code to print all the pre-defined keywords in Python using the
keyword
library - Write a program that checks if a given word is a Python keyword
- Create a list and tuple in Python, and demonstrate how attempting to change an element works differently for each
- Write a function to demonstrate the behavior of mutable and immutable arguments
- Write a program that performs basic arithmetic operations on two user-input numbers
- Write a program to demonstrate the use of logical operators
- Write a Python program to convert user input from string to integer, float, and boolean types
- Write code to demonstrate type casting with list elements
- Write a program that checks if a number is positive, negative, or zero
- Write a
for
loop to print numbers from 1 to 10 - Write a Python program to find the sum of all even numbers between 1 and 50
- Write a program to reverse a string using a
while
loop - Write a Python program to calculate the factorial of a number provided by the user using a
while
loop