+ 1
Whatâs the difference between condition and conditional ?
Like when we use if statementss
5 RĂ©ponses
+ 7
Nothing different except their use of the word.
But it will be different if we are talking about "Condition" and "Conditional Statements"
if x > 5:
print("greater")
else:
print("less")
- - - - - - - - - - - - - - -
" x > 5 " is the condition
The whole if-else statement is the conditional statement but we could also call the
" print ("greater") " and " print("less") " a conditional statement.
That's why I dont think comparing these two is neccessary cause they may have different meanings, but it's alright as long as you understand the whole concept of it
I hope I answered your question. Happy Coding!
+ 1
Conditional is the adjective form of condition.
+ 1
Conditional is generally used to describe the operators like >, <, >=, <=, == etc.
+ 1
A condition generally contains a conditional operator.
0
conditional is used to refer to a block of code that will only be met once or if a certain codition is met. a codition is the circumstances that must take place in order for that block of code to be executed