stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Quiz Flashcards | StudBud
Explore
/
Python Quiz
What can Python do?
How to find the length of a string?
Python Quiz
10 terms
·
StudBud Administration
·
2 plays
Introduction to Python
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
How to find the length of a string?
len(string)
length(string)
2
What can Python do?
It can only create web pages
It is used for game development, website development, and solve puzzles
3
I want to add 7 in the end of the following list = [1,4,5,6,8]
list.append(7)
list.insert(7)
4
How to know the datatype of a variable?
Type(variable name)
Type[variable name]
5
Variables created outside of a function in Python
local variable
Global variable
6
Can we assign multiple values to multiple variables?
No
Yes
7
How to slice this string "Hello World" from index 2 till 5
print(b(2:5))
print(b[2:5])
8
Loop through the letters in "banana"
for x in "banana": print (x)
for x in banana: print (x)
9
What is the example of a numeric data type
String
Int, float
10
What is Python?
A programming language
A Snake