Python: Hello World

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

Why is programming essential for computers to function?

Computer require programming to execute instructions — written in programming language — and carry out tasks.

2
New cards

What does coding mean in the context of computer science?

Coding is the writing of instructions into a machine-readable language for the computer to execute.

3
New cards

What is a computer program?

A program is a text file written in a programming language that is read, translated, and executed by a computer.

4
New cards

How do you write a comment in Python?

A comment — indicated by # — provides context for code, clarifies written code for others that may view it, and ignores code so that it is not executed.

5
New cards

What does the print() function do in Python?

6
New cards

What is output in the context of programming?

7
New cards

What is a string in Python?

8
New cards

What is a variable in programming?

9
New cards

What is a bug in programming?

10
New cards

What is debugging?

11
New cards

What are common causes of a SyntaxError?

12
New cards

What causes a NameError in code?

13
New cards

What is an integer (int) in programming?

14
New cards

How does a float differ from an integer?

15
New cards

What is a literal in programming?

16
New cards

What symbol is used for addition in code?

17
New cards

What symbol represents subtraction?

18
New cards

How is multiplication represented in Python?

19
New cards

How is division written in Python?

20
New cards

How does ** differ from * in Python?

21
New cards

What does the modulo operator do in Python?

22
New cards

What causes a ZeroDivisionError in Python?

23
New cards

What is string concatenation?

24
New cards

What does the str() function do in Python?

25
New cards

What does the += operator do?

26
New cards

What is a multi-line string in Python?