1,2,3 partials Flashcards
What is Boolean
Type of data that uses true or false
bool()
Boolean
Integer
It’s used for whole numbers, not decimals
int()
Integer
String
Used for text
Str(“”)
String
Float
Numbers with decimal
float()
Float
+?
Plus
-?
Substraction
/
Division
%
Reside of a division
*
Multiplication
**
Rise to the power
3 Examples of output
Monitors, printers, speakers, headphones, projectors, GPS devices
3 examples of input
Keyboard, optical pen, joystick, scanner, bar code reader
Example of both input and output
Digital camera, DVD, Fax, modem
what is if?
the action to be excecuted if conditions are met
what is elif?
another action to be excecuted if conditions are met
What is else?
The action to be excecuted only if none conditions are met
What does this mean? ==
Equal
What does this mean? >=
Bigger or equal to
What does this mean? <=
Smaller or equal to
What does this mean? !=
Not equal to
What does this mean? >
Smaller than
What does this mean? >=
Bigger than
What does this mean? .lower()=
That it changes letter to lowercase
What does this mean? .upper()=
It changes letters to uppercase
What is loops used for?
To interact over a sequence
What is the output of the following operation ?
x = 3
y = 4-2
(x!=y) or (6//4 2)>=(9%2) and (y2) <=(x/.2)
(y+1)==(8-3) or (x%3)>=(1+1) and (y) <=(x/5)
X
A monitor is an example of:
Hardware
Canvas and Excel are exmples of?
Softwares
Is a procesor a storage device?
No
Witch type of data is the following:
“I got 20 dollars in my pocket”
String
Witch type of data is the following:
A01207805
Error