+ 1

In python you can put if arguments into functions and elsewhere like in print() and it will evaluate? What does this mean?

So doing the python core course i saw they uswd print("hello" == "hello") and it evaluates to true, this is different from what i know jn php where u would require to use if function tk begin the evaluation. Why is this

18th Aug 2021, 4:57 PM
⊹≒tɧε8шσσɖɕนttεг≓⊹
⊹≒tɧε8шσσɖɕนttεг≓⊹ - avatar
3 odpowiedzi
+ 4
it’s the same also in php & every language echo “hola”===“hola”; It outputs 1 which means True.
18th Aug 2021, 5:13 PM
Iftekhar Ahmed Pranto
Iftekhar Ahmed Pranto - avatar
+ 1
Wow I dont know how I never noticed that ever! Thanks!
19th Aug 2021, 6:19 PM
⊹≒tɧε8шσσɖɕนttεг≓⊹
⊹≒tɧε8шσσɖɕนttεг≓⊹ - avatar
0
hmmmm i suppose a 'statement' as its called, the factor on which an if works, can be placed _____ places in code. One day ill learn this logic of programming and with appropriate terms committed to memory. It shall b3 much easier to understand programming as a whole and learn new languages :)
22nd Aug 2021, 11:40 PM
⊹≒tɧε8шσσɖɕนttεг≓⊹
⊹≒tɧε8шσσɖɕนttεг≓⊹ - avatar