Previously working at Potloc, Razorfish, Dentsu Creative, Marcel Worldwide, Isobar ㋡
https://eloimotte.xyz/
Types
Types
1:29 hour late… let’s start again..!
1:29 hour late… let’s start again..!
Style playing with ==
It works with strings too
Style playing with ==
It works with strings too
So from now I know how to verify when it’s smaller/greater than an other
e.g.
- 1 <= 1 is true
- 1 <= 2 is true
- 1 >= 2 is false
So from now I know how to verify when it’s smaller/greater than an other
e.g.
- 1 <= 1 is true
- 1 <= 2 is true
- 1 >= 2 is false
I forgot the screenshot, but basically I learned about < and > in order to verify if 1 is greater than 2.
I forgot the screenshot, but basically I learned about < and > in order to verify if 1 is greater than 2.
I’ve almost lost all my hearts with this first bot
I’ve almost lost all my hearts with this first bot
Still processing the f-string
Still processing the f-string
Happy Sunday !
Happy Sunday !
Right on time..!
Right on time..!
Index :
✦ Snake case _
✦ The variable is the word before =
✦ = is used to define a variable value
✦ A variable can’t have a spacing
✦ print () is used to display a variable
✦ + links 2 variables
✦ « This » is a string
✦ not false is true
✦ Use == to know if it’s =
Index :
✦ Snake case _
✦ The variable is the word before =
✦ = is used to define a variable value
✦ A variable can’t have a spacing
✦ print () is used to display a variable
✦ + links 2 variables
✦ « This » is a string
✦ not false is true
✦ Use == to know if it’s =
You can't use + with different kind of values (str vs int). But you can do it with formatted strings (f-strings) :
print(f"{2} new messages") will display -> 2 new messages
You can't use + with different kind of values (str vs int). But you can do it with formatted strings (f-strings) :
print(f"{2} new messages") will display -> 2 new messages
Use != to determine if they are different
Use != to determine if they are different
Use == to know if they are equal
Use == to know if they are equal
Not True is False, not False is True
Not True is False, not False is True
True and false
True and false
day = 02
month = 01
year = 2025
print(day + “/“ + month + “/“ + year)
Result
02/01/2025
day = 02
month = 01
year = 2025
print(day + “/“ + month + “/“ + year)
Result
02/01/2025