python fundamentals Flashcards
2 modes for running python
interpreter mode
scripting
full form of html and dhtml
html- hypertext markup language
dhtml- dynamic markup language
what is dynamic hypertext markup language
an umbrella term for a collection of technologies used together in order to create an interactive or animated website.
difference between MLL and HLL
-machine level language is machine dependent
-a machine/computer can understand it
ex- machine language and assembly language
high-level language
-not machine dependent
-its closer to english therefore a user or a programmer can understand it easily.
what is data
a raw fact, observation, or an assumption
the quantities,characters or symbols on which operations are performed by a computer, which may be stored and transmitted in the form electrical signals and recorded on magnetic, optical or mechanical recording media
what is information
data which is processed, stored or transmitted on a computer
what are tokens
in a passage of text, individual words and punctuation marks are called tokens.
(smallest individual unit)
types of tokens in python
literals, operators, punctuators, keywords
difference between multiple and single string(s)
SINGLE
-basic strings
-one line
-u create them by using single or double quote
MULTIPLE
-multiple strings
-add a backlash at the end of a line to create multiple strings
comments #
they are used to explain python code
they’re placed at the end or the beginning of a line and python ignores it.
variables
-named memory locations
-containers which store values
-it is the basic unit of storage in a program
\r \t \v \ \n ' "
ASCII carriage return
ASCII horizontal tab
ASCII vertical tab
backlash
ASCII line feed (LF)
single quote
double quote
bool
its a data type which represents 1 of the 2 possible values
either false or true