
Django3- Variables, Strings, Int, and Print
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which text editor is recommended for writing Python code in the tutorial?
Notepad++
Sublime Text
Atom
Visual Studio Code
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to assign a string to a variable in Python?
name = Nick;
name = 'Nick';
name = 'Nick'
name = Nick
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to change directories in the terminal?
cd
dir
mv
ls
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the command to list files in the current directory on a Mac?
show
ls
dir
list
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you print a variable's value in Python?
echo(variable)
show(variable)
print(variable)
display(variable)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of an f-string in Python?
To define variables
To create functions
To import modules
To format strings
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid way to create a string in Python?
"Hello'
'Hello"
"Hello"
'Hello'
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?