Financial Basics Flashcards
Programming language
the computer does not understand logic language, just understand the zero and ones.
human-readable code that the software can read and then process to the computer to and zeros and ones.
Source Code
Program
a sequence of instruction that designates how to execute a computation
Computer Science
about understanding what computers can do?
Programming
the activity of telling the computer to do something for us
programming involves
formulating problems,
breaking them down into meaningful steps. or smaller computational steps. abstracts thinking.
communicating these steps to the computer.
Python advantages
Technical Advantages
Practical Application: Several industries
Technical Advantages
-open source: Free, Anywhere
-General-purpose: Wide Scope
High level: Syntax a lot closer to human logic
is y really equal to 125? corresponding code
y==125
How to reassign the value?
The order is matters! Z = 5 z Z=5 Z=10 z Z=10
Comments
are sentences that not executed by computer
Start with #
After print
()
function in the python to prove the correct
type(var)
4.5 and 5 and true, variable types
float and integer and bool
Strings
Text values compose of a sequence of characters
‘Goerge’
write 10 dollar
y = 10
print (str(y) + ‘Dollars’)
for insert space between 3 and 5
3,5 or 3+5
run 1,2,3,’car’ output
(1,2,3,’car’)
code continuation to next line
\
Not equality sign
!=
True and True
True
True and False
False
False and False
False
False or False
False
True or True
True
True or False
True
conditional function structure
if (X,Y):
If the condition is false then use
else code (else:) that write in another block of code
before else if the condition is false
use elif the else is the last one
in fact elif for the middle code and else for the last one
Functions consequence
first the name of the function
second the body