Register - Login

Lesson 3: User Input and Basic String Manipulation

Lesson 3: User Input and Basic String Manipulation

This lesson will teach students how to accept user input and manipulate strings. They will write a program that asks for their name and age, then displays a customized greeting. Concepts like string formatting and basic methods (upper(), lower(), strip()) will be introduced.

Introduction

Welcome to Lesson 3! Today, we’re going to make our programs talk to the user and even remember what they say! You’ll learn how to ask questions and play with words in fun ways.

🌟 What You’ll Learn:

  • How to get input from the user

  • What strings are (they’re just text!)

  • How to use string methods like .upper(), .lower(), and .strip()

  • How to make a personalised greeting program

Members Only

You need to be registered and logged in to access this full python lesson and all other learning resources, games and quizzes.

Summary of This Lesson

✅ How to use input() to ask questions
✅ What strings are and how to use them
✅ String methods like .upper(), .lower(), and .strip()
✅ How to use f-strings to combine text and variables
✅ How to make a personalised greeting program

Next time, we’ll dive into basic maths and operators — you’ll learn how Python adds, subtracts, multiplies and divides, and you’ll build your very own calculator! 🔢💻

Leave a comment