Year 11
These resources will be removed by end of Summer Term 2025.
Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.
Lesson details
Key learning points
- In this lesson, we will further explore different string handling techniques that can be used in Python.
Licence
This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.
Loading...
4 Questions
Q1.
"When two or more strings are joined together" is the definition of which of the following terms?
Element
String
String handling
Q2.
"A character in a string or an item in a sequence" is the definition of which of the following terms?
Concatenate
String
String handling
Q3.
"Performing operations on string" is the definition of which of the following terms?
Concatenate
Element
String
Q4.
"A value that is text. This can include numbers but they will be read as text" is the definition of which of the following terms?
Concatenate
Element
String handling
4 Questions
Q1.
Which of the following would be output if the following code below is executed?
Hello
my_string[1]
y
Q2.
Which of the following would be output if the following code below is executed?
ell
my_string[1:3]
y_
Q3.
Which of the following would be output if the following code below is executed?
int(Hello)
my_string.isdecimal()
True
Q4.
Which of the following would be output if the following code below is executed?
65 66 67
65, 66, 67
coded_word