
Strings Manipulation - Case Conversion
Presentation
•
Computers
•
8th Grade
•
Practice Problem
•
Easy
M Dwedari
Used 18+ times
FREE Resource
7 Slides • 14 Questions
1
Login using ONLY your first name
Irrelevant and silly names will be removed
If there is, in this class, another student has the same first name, add the first letter of your surname
2
Lesson Objectives
Explore multiple case conversion functions
(upper(), lower(), title(), capitalize(), and swapcase()
Using multiple case conversion functions
(upper(), lower(), title(), capitalize(), and swapcase()
Strings Manipulation
3
Poll
Predict...
What will be the output of this code?
Error
The student's first name is sophie
The student's first name is SOPHIE
The student's first name is Sophie
4
Test the code in Thonny (3-minutes)
Open Thonny
Type the code in Thonny
Save the code to your OneDrive
Run/execute the code If you have completed the task early.
Ask your teacher for extension task
5
Multiple Choice
Now, you have tested the code in Thonny.
What has this code displayed in the shell?
Error
The student's first name is sophie
The student's first name is SOPHIE
The student's first name is Sophie
6
Poll
Predict...
What will be the output of this code?
Error
The student's first name is jimmy
The student's first name is Jimmy
The student's first name is students lower
7
Test the code in Thonny (3-minutes)
Open Thonny
Type the code in Thonny
Save the code to your OneDrive
Run/execute the code
If you have completed the task early.
Ask your teacher for extension task
8
Multiple Choice
Now, you have tested the code in Thonny.
What has this code displayed in the shell?
Error
The student's first name is jimmy
The student's first name is Jimmy
The student's first name is students lower
9
Poll
Predict...
What will be the output of this code?
Error
The student's first name is OLIVER JOHNS
The student's first name is Oliver johns
The student's first name is STUDENT
The student's first name is Oliver Johns
10
Test the code in Thonny (3-minutes)
Open Thonny
Type the code in Thonny
Save the code to your OneDrive
Run/execute the code
If you have completed the task early. Ask your teacher for extension task
11
Multiple Choice
Now, you have tested the code in Thonny.
What has this code displayed in the shell?
The student's first name is Oliver Johns
The student's first name is OLIVER JOHNS
The student's first name is Oliver johns
The student's first name is STUDENT
12
Poll
Predict...
What will be the output of this code?
Error
The student's first name is OLIVER JOHNS
The student's first name is Oliver Johns
The student's first name is STUDENT
13
Test the code in Thonny (3-minutes)
Open Thonny
Type the code in Thonny
Save the code to your OneDrive
Run/execute the code
If you have completed the task early. Ask your teacher for extension task
14
Multiple Choice
Now, you have tested the code in Thonny.
What has this code displayed in the shell?
Error
The student's first name is OLIVER JOHNS
The student's first name is Oliver Johns
The student's first name is STUDENT
15
Poll
Predict...
What will be the output of this code?
Students Name: jIMMY jOHNS
Error
Students Name: student swapcase
Students Name: Jimmy Johns
16
Test the code in Thonny (3-minutes)
Open Thonny
Type the code in Thonny
Save the code to your OneDrive
Run/execute the code
If you have completed the task early. Ask your teacher for extension task
17
Multiple Choice
Now, you have tested the code in Thonny.
What has this code displayed in the shell?
Students Name: jIMMY jOHNS
Error
Students Name: student swapcase
Students Name: Jimmy Johns
18
Multiple Choice
I want all the letters to be converted to uppercase. Which function should I use?
variable.upper()
variable.capitalize()
variable.title()
19
Multiple Choice
I want all the letters to be converted to lowercase. Which function should I use?
variable.upper()
variable.lower()
variable.swapcase()
20
Multiple Choice
I want ONLY the first letter to be converted to an uppercase one. Which function should I use?
variable.upper()
variable.capitalize()
variable.title()
21
Multiple Choice
I want to capitalise the first letter of each word. Which function should I use?
variable.lower()
variable.capitalize()
variable.title()
variable.upper()
Login using ONLY your first name
Irrelevant and silly names will be removed
If there is, in this class, another student has the same first name, add the first letter of your surname
Show answer
Auto Play
Slide 1 / 21
SLIDE
Similar Resources on Wayground
14 questions
Computer Science History
Presentation
•
8th Grade
15 questions
Logic Gates
Presentation
•
9th Grade
17 questions
Computer Software
Presentation
•
7th Grade
16 questions
Mars
Presentation
•
KG - 8th Grade
16 questions
Introduction to Plate Tectonics
Presentation
•
8th Grade
16 questions
Types of Speciation
Presentation
•
8th Grade
16 questions
Negative tú commands
Presentation
•
8th Grade
16 questions
8th Grade Review
Presentation
•
8th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade
Discover more resources for Computers
20 questions
Early Computing
Quiz
•
7th - 12th Grade
11 questions
Technology Acceptable Use
Quiz
•
6th - 8th Grade
16 questions
Clovis Unified Student Use of Technology
Quiz
•
4th - 8th Grade
10 questions
Exploring Computer Hardware and Software Components
Interactive video
•
6th - 10th Grade
16 questions
Responsible Use Guideline Quiz
Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship
Quiz
•
8th - 12th Grade
15 questions
Student Technology Agreement
Quiz
•
6th - 8th Grade
22 questions
Electronic Computing
Quiz
•
8th - 12th Grade