Welcome back to my Learning by Doing series! 🚀
In this video, I solve a simple yet fundamental problem using Python's input() function. The program prompts the user to input their name and calculates the number of characters in the entered name. This challenge emphasizes the use of Python's string manipulation and showcases how to handle user input effectively.
Problem Statement:
Write a program that:
Prompts the user with the message: "What is your name?"
Accepts the name as input.
Outputs the number of characters in the provided name.
Example:
Input: "Elshad"
Output: 6
Hint:
Google how to find the length of a string in Python.
🔗 Connect with Me:
🌐 Website: iamharichselvam.web.app
💼 LinkedIn: linkedin.com/in/harichselvamc
🐙 GitHub: github.com/harichselvamc
📘 Medium: medium.com/@harichselvamc
💡 LeetCode: leetcode.com/harichselvam
💡 About Me:
I’m Harichselvam, a passionate Computer Science and Engineering student from Chennai, India, exploring the world of programming, AI, and Data Science. Through challenges and hands-on coding, I aim to improve and share my journey with fellow learners.
👉 Subscribe to my channel for more Python basics, coding tutorials, and problem-solving tips! 🚀
#PythonBasics #InputFunction #StringManipulation #LearningByDoing #CodingJourney #Harichselvamc