Zusammenfassung der Ressource
Frage 1
Frage
Numeric:
A numeric value is any representation of data which has a numeric value. Python identifies three types of numbers:
[blank_start]Integer:[blank_end] Positive or negative whole numbers (without a fractional part)
[blank_start]Float:[blank_end] Any real number with a floating point representation in which a fractional component is denoted by a decimal symbol or scientific notation
[blank_start]Complex number:[blank_end] A number with a real and imaginary component represented as x+yj. x and y are floats and j is -1(square root of -1 called an imaginary number)
Antworten
-
Integer:
-
Float:
-
Complex number:
Frage 2
Frage
Data with one of two built-in values True or False. Notice that 'T' and 'F' are capital. true and false are not valid booleans and Python will throw an error for them.
Antworten
-
Integer
-
Character
-
Boolean
Frage 3
Frage
Sequence Type
A sequence is an ordered collection of similar or different data types. Python has the following built-in sequence data types:
[blank_start]String:[blank_end] is a collection of one or more characters put in single, double or triple quotes.
[blank_start]List :[blank_end] is an ordered collection of one or more data items, not necessarily of the same type, put in square brackets.
[blank_start]Tuple:[blank_end] is an ordered collection of one or more data items, not necessarily of the same type, put in parentheses.
Antworten
-
String:
-
Tuple:
-
List:
-
Tuple:
-
String:
-
List :
-
List:
-
Tuple:
-
String: