Introduction to Python Programming: A Foundational Guide
Muhammad Ibrahim, Department of Computer Science, University of Jayabaya
Abstract:
Python is a widely-used high-level programming language ideal for beginners. This guide introduces
its basic concepts with examples.
1. What is Python?
Python is an interpreted language known for its readable syntax and versatility. It is used in web
development, data science, and automation.
2. Variables and Data Types
Python supports integers, floats, strings, and booleans. Variables are dynamically typed.
3. Conditional Statements
'if', 'elif', and 'else' are used to make decisions in programs.
4. Loops and Functions
Loops help repeat code. Functions allow reusable code blocks using the 'def' keyword.
5. Example Code
```python
def greet(name):
print(f"Hello, {name}!")
greet("World")
```
References:
- Python.org documentation
- Automate the Boring Stuff with Python by Al Sweigart