Search Header Logo
G9 W2 P1- Setting up Python-Your First Code

G9 W2 P1- Setting up Python-Your First Code

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Hassan Abdalla Ali Hassan .

Used 4+ times

FREE Resource

15 Slides • 14 Questions

1

media

2

Multiple Choice

Why is learning Python considered important in today's world of technology and artificial intelligence?

1

Because Python is only used for web development

2

Because Python is easy to learn and widely used in data science, AI, and automation

3

Because Python is the oldest programming language

4

Because Python is only used for making games

3

media

4

Multiple Choice

Scenario: You want to quickly check if the code print("Hello") works correctly.

Which method is BEST for quickly checking if the code print("Hello") works correctly?

1

Write the code in Notepad, save it as a .py file, and run it.

2

Open the Python interactive mode (>>>), type the code, and press Enter.

3

Write the code in a Microsoft Word document.

4

Print the code on paper.

5

media

6

media

7

media

8

Multiple Choice

Script mode is best for writing long programs that you need to save and edit later.

1

True

2

False

9

Multiple Choice

You want to write a long program with many lines that you can save and edit later. Which mode should you use?

1

Interactive mode

2

Script mode

3

Command prompt only

10

Multiple Choice

When you click "Run" in the W3Schools Python editor, what happens to your code?

1

It is saved to your computer only

2

It is executed immediately and the output appears in the right panel

3

It is sent to your teacher for checking

11

media

12

13

media

14

Open Ended

Replace the code with: print("I am learning Python")

Modify the code to print your school name:

print("Taryam American Private School")

15

Multiple Choice

Q1: What does the print() function do?

1

It saves your code

2

It displays text on the screen

3

It asks the user for input

16

Multiple Choice

Q2: Which code will print "Dubai" on the screen?

1

Interactive mode

2

display("Dubai")

3

print("Dubai")

17

media

18

media

19

Open Ended

The Problem: How do we print text on multiple lines using ONE print()?

The Solution: Use \n (new line escape sequence)

Example:

print("Dubai\nAbu Dhabi\nSharjah")

20

media

21

Open Ended

Write one print() statement that displays:

   - Your name

   - Your grade

   - Your favorite subject

22

media

23

Multiple Select

Select all the correct uses of the \n escape sequence in Python print statements.

1

print("Hello\nWorld")

2

print("Hello World\n")

3

print("Hello\tWorld")

4

print("Hello World")

24

Open Ended

Write code to print this information using ONE print() statement and \n:

- School: Taryam American Private School

- Grade: 9

- Subject: ICT

25

media

26

Poll

I can open the W3Schools editor, write a print() statement, and use \n to create new lines.

Yes, I can do it easily.

I can do it with some help.

I need more practice.

27

media

28

Fill in the Blanks

Type answer...

29

media
media

Show answer

Auto Play

Slide 1 / 29

SLIDE