Day 4 on TitanPath - “Python Strings Explained in 5 Minutes"

AkshatAkshat
1 min read

Today I explored string methods like .strip() and formatted printing using f-strings in Python. I also learned the 3 main types of machine learning — Supervised, Unsupervised, and Reinforcement Learning.

Some My Python Code Examples

.strip() example:

pythonCopy codedirty_input = "     let's conquer AI     "
cleaned = dirty_input.strip()
print(cleaned)  # Output: "let's conquer AI"

f-string example:

pythonCopy codeday_no = 4
name = "Akshat"
print(f"{name} is on Day {day_no} of the Titan Path")

In ML :

  • Supervised Learning: Learns from labeled data (e.g., spam detection)

  • Unsupervised Learning: Finds patterns in unlabeled data (e.g., customer segmentation)

  • Reinforcement Learning: Learns through rewards and penalties (e.g., robot learning to walk)

🌟 Field I Want to Explore

I'm excited about AI for automation — like smart assistants, self-learning bots, and tools that can reduce human effort through intelligence.

0
Subscribe to my newsletter

Read articles from Akshat directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Akshat
Akshat

Akshat | Learning AI & Python | #TitanPath | Public journey to top 0.001% 🚀