Chapter 2 GETTING STARTED Flashcards

1
Q

What is programming?

A

Writing instructions for a computer to execute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The instructions might tell the computer to print Hello, World! , scrape data from the internet or read the contents of a file and save them to a database. These instructions are called_____

A

code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Python is an open-source programming language created by_____and it was named after ________

A

Dutch programmer GUIDO VAN ROSSUM AND named after the British sketch comedy group, Monty Python’s Flying
Circus .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

One of van Rossum’s key insights was that programmers spend more time_____than _____ so he created an easy-to-read language

A

reading

code than writing it,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_____ is one of the most

popular and easiest to learn programming languages in the world.

A

Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is there a high demand for Python programmers?

A

It runs on all the major operating systems and computers and is used in everything from building web servers to creating desktop applications. Because of its popularity, there is a large demand for Python programmers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Python comes with a program called ?

A

IDLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does IDLE stand for

A

Interactive Development Environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Where do you type your python code?

A

IDLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The interactive shell is useful for 3 main things

A

Quick computations
Testing small bits of code
Writing short programs you don’t plan on using again.(you can also save a program for reuse?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When you run your code, the output of the code you wrote will appear in the

A

interactive shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Python files have to end with

A

.py

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Short examples are best run using the _____ and the text editor is better for_____programs if you want to ____ and ______

A

Shell; longer programs; save and edit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How is using the In the interactive shell differ from using the text editor? ,

A

if you make a mistake in your code—a typo for example—and the code doesn’t work, you have to type
everything again. Using the text editor lets you save your work, so if you make a mistake, you simply edit the mistake and rerun the program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Another reason the distinction between using the interactive shell and the text editor is important is the _____. Explain

A

output of a program running from a file versus the shell can be slightly different. If you type 100 into the interactive shell and
press enter, the interactive shell will output 100 . If you type 100 into a .py file and run it, there will be no output. This difference can cause confusion, so be mindful of where you are running a program from if you do not get the same output as the example.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Define programming

A

Writing instructions for a computer to execute.

17
Q

Define code:

A

The instructions programmers write for a computer to execute.

18
Q

What is low-level programming language :

A

A programming language closer to being written in

binary (0s and 1s) than a high-level programming language.

19
Q

What is assembly language ?

A

A type of difficult to read programming language.

20
Q

High-level programming language :

A

A programming language that reads more like English

than a low-level programming language.

21
Q

What is Python :

A

The easy to read, open-source programming language you will learn to use

22
Q

Who created Python? And Who is it named after?

A

Created by Guido van Rossum

Name after the British sketch comedy group, Monty Python’s Flying Circus