Python Basics Presentation
Python Basics Presentation
• • While Loop:
• count = 0
• while count < 5:
• print(count)
• count += 1
Functions in Python
• def greet(name):
• return 'Hello, ' + name
• print(greet('Alice'))
Lists and Dictionaries
• • List: fruits = ['apple', 'banana', 'cherry']
• print(fruits[0])
• • Dictionary: person = {'name': 'Alice', 'age':
25}
• print(person['name'])
File Handling in Python
• with open('test.txt', 'w') as f:
• f.write('Hello, Python!')
Conclusion & Next Steps
• • Recap key concepts.
• • Explore Python libraries like NumPy, Pandas,
and Tkinter.
• • Practice with small projects.
Q&A
• Open floor for questions.