DEV Community

Shivani Sangeeta
Shivani Sangeeta

Posted on

Day 2: Python Basics & Async Programming

🚀 Day 2: Python Basics & Async Programming

Today I explored Python basics and got introduced to async programming.


🧠 What I Learned

  • Variables and data types
  • Functions in Python
  • Introduction to async/await
  • Writing clean and simple code

💻 Example Code


python
import asyncio

async def greet():
    print("Hello")
    await asyncio.sleep(1)
    print("World")

asyncio.run(greet())
Enter fullscreen mode Exit fullscreen mode

Top comments (0)