Introduction To Programming In Python an der IU Internationale Hochschule | Karteikarten & Zusammenfassungen

Lernmaterialien für Introduction to Programming in Python an der IU Internationale Hochschule

Greife auf kostenlose Karteikarten, Zusammenfassungen, Übungsaufgaben und Altklausuren für deinen Introduction to Programming in Python Kurs an der IU Internationale Hochschule zu.

TESTE DEIN WISSEN

Why is Python so popular?

Lösung anzeigen
TESTE DEIN WISSEN
  • It's an interpreted language, feedback ist immediate
  • Easy syntax
  • Very active developer community
Lösung ausblenden
TESTE DEIN WISSEN

Why does the input function always return the type string?

Lösung anzeigen
TESTE DEIN WISSEN

The python interpreter cannot tell when a User wants to type 42 as a string or int or float with .0 decimals. To be safe, it always returns a string

Lösung ausblenden
TESTE DEIN WISSEN

What are the different logging format attributes?

Lösung anzeigen
TESTE DEIN WISSEN

asctime - %(asctime)s -> creation time and date

fimename - %(filename)s -> name of file

funcName - %(funcName)s -> name of function

lineno - %(lineno)d -> line of code

process - %(process)d -> process ID

processName - %(processName)s -> Process name

Lösung ausblenden
TESTE DEIN WISSEN

Define the word "expression"

Lösung anzeigen
TESTE DEIN WISSEN

The combination of operations that evaluates to a value is an expresion:


a + 5 is an expression

Lösung ausblenden
TESTE DEIN WISSEN

What are the two types of errors?

Lösung anzeigen
TESTE DEIN WISSEN

Syntax -> When the syntax rules are not being followed (no colons at if statement)

Exceptions -> Happens during program execution (Divide by 0)

Lösung ausblenden
TESTE DEIN WISSEN

How are exceptions handled?

Lösung anzeigen
TESTE DEIN WISSEN

Using Try block, we can specify the exception error that we think will occur and handle it this way, instead of the program crashing


Lösung ausblenden
TESTE DEIN WISSEN

What are the different types of escape characters?

Lösung anzeigen
TESTE DEIN WISSEN

\\ = Single backslash

\' = single quote

\" = double quote

\n = ASCII new line character

\r = ASCII carriage return character

\t = ASCII tab character

Lösung ausblenden
TESTE DEIN WISSEN

What is a Python set?

Lösung anzeigen
TESTE DEIN WISSEN

A structure that can hold data in an unsorted manner.

Lösung ausblenden
TESTE DEIN WISSEN

What is a scientific notation?

Lösung anzeigen
TESTE DEIN WISSEN

A concise way to represent very large or very small numbers.


4.5e7 = 4.5 * 10^7 = 4.5 * 1000000 = 45,000,000

Lösung ausblenden
TESTE DEIN WISSEN

What is a file lock?

Lösung anzeigen
TESTE DEIN WISSEN

Prevents two (or more) applications from writing to the same file at the same time

Lösung ausblenden
TESTE DEIN WISSEN

What is an argument?

Lösung anzeigen
TESTE DEIN WISSEN

Values that are passed to functions via the parameters.

Lösung ausblenden
TESTE DEIN WISSEN

What is the benefit of importing the entire library?

Lösung anzeigen
TESTE DEIN WISSEN

Importing the entire library reduces the likelihood that a name conflict will exist in the global namespace by making use of the dot notation.

Lösung ausblenden
  • 715624 Karteikarten
  • 14989 Studierende
  • 409 Lernmaterialien

Beispielhafte Karteikarten für deinen Introduction to Programming in Python Kurs an der IU Internationale Hochschule - von Kommilitonen auf StudySmarter erstellt!

Q:

Why is Python so popular?

A:
  • It's an interpreted language, feedback ist immediate
  • Easy syntax
  • Very active developer community
Q:

Why does the input function always return the type string?

A:

The python interpreter cannot tell when a User wants to type 42 as a string or int or float with .0 decimals. To be safe, it always returns a string

Q:

What are the different logging format attributes?

A:

asctime - %(asctime)s -> creation time and date

fimename - %(filename)s -> name of file

funcName - %(funcName)s -> name of function

lineno - %(lineno)d -> line of code

process - %(process)d -> process ID

processName - %(processName)s -> Process name

Q:

Define the word "expression"

A:

The combination of operations that evaluates to a value is an expresion:


a + 5 is an expression

Q:

What are the two types of errors?

A:

Syntax -> When the syntax rules are not being followed (no colons at if statement)

Exceptions -> Happens during program execution (Divide by 0)

Mehr Karteikarten anzeigen
Q:

How are exceptions handled?

A:

Using Try block, we can specify the exception error that we think will occur and handle it this way, instead of the program crashing


Q:

What are the different types of escape characters?

A:

\\ = Single backslash

\' = single quote

\" = double quote

\n = ASCII new line character

\r = ASCII carriage return character

\t = ASCII tab character

Q:

What is a Python set?

A:

A structure that can hold data in an unsorted manner.

Q:

What is a scientific notation?

A:

A concise way to represent very large or very small numbers.


4.5e7 = 4.5 * 10^7 = 4.5 * 1000000 = 45,000,000

Q:

What is a file lock?

A:

Prevents two (or more) applications from writing to the same file at the same time

Q:

What is an argument?

A:

Values that are passed to functions via the parameters.

Q:

What is the benefit of importing the entire library?

A:

Importing the entire library reduces the likelihood that a name conflict will exist in the global namespace by making use of the dot notation.

Introduction to Programming in Python

Erstelle und finde Lernmaterialien auf StudySmarter.

Greife kostenlos auf tausende geteilte Karteikarten, Zusammenfassungen, Altklausuren und mehr zu.

Jetzt loslegen

Das sind die beliebtesten StudySmarter Kurse für deinen Studiengang Introduction to Programming in Python an der IU Internationale Hochschule

Für deinen Studiengang Introduction to Programming in Python an der IU Internationale Hochschule gibt es bereits viele Kurse, die von deinen Kommilitonen auf StudySmarter erstellt wurden. Karteikarten, Zusammenfassungen, Altklausuren, Übungsaufgaben und mehr warten auf dich!

Die all-in-one Lernapp für Studierende

Greife auf Millionen geteilter Lernmaterialien der StudySmarter Community zu
Kostenlos anmelden Introduction to Programming in Python
Erstelle Karteikarten und Zusammenfassungen mit den StudySmarter Tools
Kostenlos loslegen Introduction to Programming in Python