Merge branch 'main' of gitlab.fdmci.hva.nl:propedeuse-hbo-ict/onderwijs/2023-2024/out-a-se-ti/blok-3/qaajeeqiinii59
This commit is contained in:
@@ -220,12 +220,20 @@ The following were used:
|
||||
After still not getting it very well i asked Dano (a teammate of mine) if he could teach me some basics, and so we did.
|
||||
He taught me how to make a simple calculator and told me why my code worked the way it did.
|
||||
(This was the code:
|
||||
|
||||
// this prints a cheatsheet to know if the user wants plus or minus.
|
||||
print("1 = + 2 = -")
|
||||
c = int(input())
|
||||
|
||||
// a input is given for the first number.
|
||||
print("first number")
|
||||
a = input()
|
||||
|
||||
//a input is given for the second number.
|
||||
print("second number")
|
||||
b= input()
|
||||
|
||||
//a if-statement to see if it is plus or minus.
|
||||
if c == 1:
|
||||
print(int(a) + int(b))
|
||||
elif c == 2:
|
||||
@@ -233,3 +241,6 @@ elif c == 2:
|
||||
)
|
||||
|
||||
Even if it looked simple, this was the ignition I needed to understand python better and continue my own research.
|
||||
|
||||
### Python for dummmies pt2
|
||||
after some intense trail and error, I managed to connect to the websocket
|
Reference in New Issue
Block a user