

Python Introduction-2-26-2025
Presentation
•
Computers
•
KG
•
Hard
Steven Howard
FREE Resource
19 Slides • 16 Questions
1
2
3
4
Multiple Choice
5
Example of Python Syntax:
print(" Welcome to Computer Science! ")
Step 1: Type the keyword print
Step 2: ( ) Add parenthesis
Step 3: (" ") Add quotation marks inside the parenthesis
Step 4: (" Welcome to Computer Science ") Type Welcome to Computer Science in between the parenthesis.
6
What is Syntax?
- the set of rules that defines the combinations of symbols that are considered to be correctly structured statements or expressions in that language.
7
Multiple Choice
8
Multiple Choice
9
Multiple Choice
Improper indentation is an example of what type of error?
Syntax Error
Run-time Error
Semantic Error
10
Multiple Choice
An infinite loop is an example of what type of error?
Syntax Error
Run-time Error
Semantic Error
11
Multiple Choice
The wrong use of PEMDAS is an example of what type of error?
Syntax Error
Run-time Error
Semantic Error
12
Multiple Choice
The following is an example of what type of error?
print("Here is some text")
print(1/0)
Syntax Error
Run-time Error
Semantic Error
13
Multiple Choice
The following is an example of what type of error?
print("Here is some text"
print(6/2)
Syntax Error
Run-time Error
Semantic Error
14
Multiple Choice
The following is an example of what type of error?
print(Here is some text")
print(2/2)
Syntax Error
Run-time Error
Semantic Error
15
Multiple Choice
The following code to calculate an average is an example of what type of error?
x = 2
y = 6
average = x + y / 2
print(average)
Syntax Error
Run-time Error
Semantic Error
16
17
Strings (str)
Lets the user type in letters, numbers and words
Not used for calculations
When doing calculations: be sure to check that your value is a number, not a string
Always surrounded in quotation marks
18
What are Variables?
A name for a spot in the computer’s memory
This value can change while the program runs
Different types of data take up different amounts of space in memory
19
Multiple Select
Select all strings:
greeting = (Hello)
greeting = ("Please enter your name")
greeting = (Welcome to Comp Sci)
greeting = ("Happy Friday!!!")
20
Multiple Select
Please select all floating point numbers:
1.444
34567
777.980
32.0
21
21
Boolean Values:
- In programming you often need to know if an expression is True or False.
-You can evaluate any expression in Python, and get one of two answers, True or False.
-When you compare two values, the expression is evaluated and Python returns the Boolean answer:
print(10 > 9)
print(10 == 9)
print(10 < 9)
22
Multiple Choice
23
Multiple Choice
24
Multiple Choice
What is the stat type returned for this line of code: type(0.6)
Boolean
string
integer
float
25
Multiple Choice
What is the output for this line of code: print(type('I love Quizizz!"))
<class 'bool'>
<class 'str'>
<class 'int'>
error
26
27
28
29
30
31
32
33
34
35
Show answer
Auto Play
Slide 1 / 35
SLIDE
Similar Resources on Wayground
30 questions
Tin 6_ CĐB- Bai 2; CÁC THÀNH PHẦN CỦA MẠNG MÁY TÍNh
Presentation
•
2nd Grade
26 questions
4.2 Private & Personal Information
Presentation
•
4th Grade
28 questions
Parts of a Computer System
Presentation
•
7th Grade
34 questions
Volume of a Right Rectangular Prism Study Guide
Presentation
•
5th Grade
28 questions
Contemporary Texas 1950-Present Economy
Presentation
•
7th Grade
28 questions
Parts of A Computer
Presentation
•
7th - 8th Grade
29 questions
Computer Vocabulary
Presentation
•
1st - 6th Grade
25 questions
Network Topology
Presentation
•
11th - 12th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade