Intro To Python Programming - Writing and Running Your First Python Program

Intro To Python Programming - Writing and Running Your First Python Program

Assessment

Interactive Video

Information Technology (IT), Architecture

KG - University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial guides viewers through setting up a Python environment using Atom, creating a new Python file, writing a basic program, and running it via the command line. It explains the use of the print command in Python 3, emphasizing the importance of parentheses. The tutorial also covers navigating the file system using terminal commands and highlights Python's line-by-line code execution. Viewers are encouraged to practice by printing additional strings.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for Python source files?

.java

.html

.txt

.py

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python 3, how is the print command treated?

As a statement

As a class

As a variable

As a function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to save a file in Atom?

Ctrl + S

Command + S

Shift + S

Alt + S

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to change directories in the terminal?

ls

cd

pwd

mkdir

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to list files in a directory?

ls

cd

pwd

rm

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does Python interpret code?

Randomly

All at once

Line by line

In reverse order

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you practice printing using the print command?

All of the above

Your name

Your address

Where you work