The output of the input function is always a
string
pros/cons of python
Why to not use word processor?
screw up the formatting
Process for programs to be ready by computer
program is yranslated into binary machine language
do not click on the previously created program to open it because….
operating system will try to run python programs (not allow you to edit it)
Naming files (2)
Variables (3)
used to do what?+what happen if u put anothe info in+accesibility?
type of info that can be stored in variables: (3)
The assignment operator+ tell me about photocopying (y=3 x=y y=6)
When naming a variable (3)
division symbol
/
integer division symbol+ what it does
//
9//2 ->4
exponent symbol
**
order of operation (2)
Triple quote
Prints exactly what you typed
bits
A bit in computer science holds the information of a ‘yes-no’ question - 1 means yes, 0 means no.
When you put a few bits together you can represent a larger number (think combinations).
With a larger number you can represent letters from an alphabet or colors on a screen or volume levels of sound and music.
And there you have it — a computer system, built on the bit.
converting float to integers will
not round the number, just cut off
”+ with strings”
Concatention
+ with non strings
+ with integers:
what happens if:
print format with format specifiers:
print (“course: %s%d” %(num, sum))
print format with format specifiers:
print (“course: %s%d” %(num, sum))
%d
integer
%f
floating point