
Python Strings and Basic Operations
Flashcard
•
Computers
•
University
•
Hard
Mrs. 1
FREE Resource
Student preview

8 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the syntax to create a single-line string in Python?
Back
s1 = 'I B.Tech' or s2 = 'Robotics'.
2.
FLASHCARD QUESTION
Front
How do you create a multi-line string in Python?
Back
s3 = """This is a multi-line string""".
3.
FLASHCARD QUESTION
Front
What function is used to get the length of a string in Python?
Back
len() function.
4.
FLASHCARD QUESTION
Front
What is the output of print(len(text)) if text = 'Python'?
Back
6.
5.
FLASHCARD QUESTION
Front
What does print(text[0]) return if text = 'Python'?
Back
'P'.
6.
FLASHCARD QUESTION
Front
What does print(text[-1]) return if text = 'Python'?
Back
'n'.
7.
FLASHCARD QUESTION
Front
What does print(text[0:4]) return if text = 'Python'?
Back
'Pyth'.
8.
FLASHCARD QUESTION
Front
What does print(text[::-1]) return if text = 'Python'?
Back
'nohtyP'.
Similar Resources on Wayground
5 questions
Nonfiction Text Features
Flashcard
•
KG - University
9 questions
Python Programming Basics Flashcard
Flashcard
•
12th Grade
10 questions
Тест по информатике
Flashcard
•
University
4 questions
Функции в Python
Flashcard
•
KG - University
9 questions
Flashcardz Capacitify Class 7
Flashcard
•
University
15 questions
Нысаналы мектеп информатика 3-аралық тест
Flashcard
•
KG - University
10 questions
Arrays
Flashcard
•
10th - 12th Grade
10 questions
Fundamentos de Python
Flashcard
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University