Python

1. Print Statement

print("Hello, World!")

2. Variables and Data Types

age = 25
name = "John"
is_student = True

3. String Formatting

greeting = f"Hello, {name}! You are {age} years old."

4. Lists and Indexing

my_list = [1, 2, 3, "four", 5.0]
first_item = my_list[0]

5. Dictionaries

my_dict = {"key": "value", "name": "Alice"}
value = my_dict["key"]

6. Conditional Statements

if age > 18:
    print("You are an adult.")
elif age == 18:
    print("You just became an adult.")
else:
    print("You are a minor.")

7. Loops - For and While

8. Functions

9. List Comprehensions

10. Exception Handling

11. Classes and Objects

12. File Handling

13. Modules and Libraries

14. Lambda Functions

15. Working with JSON

16. Modules and Libraries

17. Working with Files

18. Exception Handling (try, except, else, finally)

19. Classes and Inheritance

20. List Manipulation

21. Sets

22. Tuples

23. Working with Dates and Times

24. List Sorting

25. Map, Filter, and Reduce

26. Virtual Environments

27. Working with APIs

28. Regular Expressions

29. Lambda Functions

30. List Comprehensions

31. Dictionary Manipulation

32. JSON Manipulation

33. Context Managers

34. Decorators

35. Asyncio (Asynchronous Programming)

36. Web Scraping with BeautifulSoup

37. Machine Learning with Scikit-Learn

38. Django Web Framework

39. Flask Web Framework

40. Creating a Simple REST API with Flask-RESTful

Last updated

Was this helpful?