DEV Community

Cover image for Day 01 of My AI & Data Mastery Journey: From Python to Generative AI
Nitin-bhatt46
Nitin-bhatt46

Posted on

Day 01 of My AI & Data Mastery Journey: From Python to Generative AI

💡 Why Python First?

• Easy to learn, beginner-friendly
• Widely used in Data, AI & ML

TODAY’S PROJECT

First Project :-

100DaysofCode

Welcome to Brand Name Generator?
What’s the name of City you grew up in?
User input 1
What’s your pet’s name?
User input 2
Your Brand name could be User input 1 + User input 2

Second Project :-

Welcome to the tip calculator
What was the total bill?
User_input_1
What percentage tip would you like to give like 5 , 10 , 15 etc ?
User_input_2
How many people to split the bill?
User_input_3
each person should pay ______.

Hint
total = (bill / people) + ((tip * bill/100)/people)

Now it’s time for some hands-on practice.

👉 Are you ready for today’s learning challenge?”

1. Username Generator

Ask the user for their first name and birth year.
Output: "Your username is ".
Example:
Input → Nitin, 2002
Output → "Your username is Nitin2002"


2. Simple Age Calculator

Ask the user for their birth year and calculate their current age (assume the current year = 2025).
Example:
Input → 2002

Debugging Questions

1. Make it correct
city = input("Enter your city: ")
year = input("Enter your birth year: ")
print("You are from " + city + year + "!")

❌ Problem: If city = Delhi and year = 2000, output is → "You are from Delhi2000!"
✅ Expected: "You are from Delhi in 2000!"

2. Make it correct

bill = input("Enter your bill amount: ")
tip = input("Enter tip percentage: ")
total = bill + (bill * tip / 100)
print("Total bill with tip:", total)

❌ Problem: This code will throw an error because of mixing str and int/float.
✅ You need to fix type conversion.

🎯 You’ve completed AI & Data Mastery Journey – 01

Topic: Starting with Python 🐍

📂 Code & Examples → GitHub (link in bio)

💬 Drop a comment: “Done ✅” if you learned something new
📌 Save this post for revision later

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.