bram documentation

This commit is contained in:
Bram Barbieri
2024-03-13 12:49:48 +01:00
parent 8aeca410fc
commit 8b0be0d6bd

View File

@@ -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. 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. 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 was the code:
// this prints a cheatsheet to know if the user wants plus or minus.
print("1 = + 2 = -") print("1 = + 2 = -")
c = int(input()) c = int(input())
// a input is given for the first number.
print("first number") print("first number")
a = input() a = input()
//a input is given for the second number.
print("second number") print("second number")
b= input() b= input()
//a if-statement to see if it is plus or minus.
if c == 1: if c == 1:
print(int(a) + int(b)) print(int(a) + int(b))
elif c == 2: 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. 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