0% found this document useful (0 votes)
18 views1 page

Python Lecture1 Summary

Uploaded by

sh.swastik1245
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Python Lecture1 Summary

Uploaded by

sh.swastik1245
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Full Course - Lecture 1: Variables & Data Types

Overview:
This lecture introduces the basics of Python, focusing on how to use variables and understand
different data types.
It is the foundation of programming in Python.

Topics Covered:
1. What is Python?
- A high-level, interpreted programming language used for web, data, AI, etc.
2. Variables in Python:
- Used to store data values
- No need to declare type beforehand
Example:
name = "Alice"
age = 25
3. Data Types:
- String (str): "Hello"
- Integer (int): 10
- Float (float): 3.14
- Boolean (bool): True or False
4. Type Conversion:
- str() → converts to string
- int() → converts to integer
- float() → converts to float
Example:
age = int(input("Enter your age: "))
print("Next year you will be", age + 1)
5. Input and Output:
- input() to take user input (always returns a string)
- print() to display output
6. Best Practices:
- Use meaningful variable names
- Follow consistent formatting (snake_case)

Conclusion:
This lecture lays the groundwork for all future Python programming.
Understanding how variables work and how data types behave is essential to writing correct and
efficient code.

You might also like