
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'.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
9 questions
Světová literatura do konce 18. století
Flashcard
•
KG
7 questions
Flashcards Phrasals Get
Flashcard
•
Professional Development
10 questions
SUP E3 - PART 1
Flashcard
•
University
6 questions
C Programming - Control Flow
Flashcard
•
KG
12 questions
Тест з інформаційно-комунікативних технологій в освіті
Flashcard
•
KG - University
10 questions
Python basics
Flashcard
•
University
2 questions
KARTARA Flashcard Set
Flashcard
•
KG
2 questions
Understanding Repeated Numbers
Flashcard
•
KG
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade