
Python Learning
Authored by Elchin Salahzada
Education, Instructional Technology
KG - 3rd Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
>>> a,b=2,3
>>> min=a if a<b else b
>>> min
min=5
min=3
min=2
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
a,b=2,3
min=a if a<b else b
>>> min
print("Hi") if a<b else print("Bye")
Output: ?
Hi
HiBye
ByeHi
Bye
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for i in range(7):
if i==3:
break
print(i)
1
2
3
4
5
6
7
1
2
4
5
6
1
2
4
5
6
7
1
2
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for i in range(7):
if i==3:
continue
print(i)
1
2
3
4
5
6
1
2
4
5
6
7
1
2
4
5
6
1
2
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
>>> a=[1,2,4]
>>> a.insert(2,3)
>>> a
(1,2,3,4)
{1,2,3,4}
[1,2,4,2,3]
[1,2,3,4]
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
15%7=?
1
2
22
8
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
>>> colors=['red','green','blue']
>>> type(colors)
<class 'tuple'>
class <'list'>
<class 'set'>
<class 'dict'>
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?