+ 1

What’s the difference between condition and conditional ?

Like when we use if statementss

23rd Dec 2020, 3:53 AM
Victoria
Victoria - avatar
5 Antworten
+ 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!
23rd Dec 2020, 3:59 AM
noteve
noteve - avatar
+ 1
Conditional is the adjective form of condition.
23rd Dec 2020, 7:05 AM
Sonic
Sonic - avatar
+ 1
Conditional is generally used to describe the operators like >, <, >=, <=, == etc.
23rd Dec 2020, 7:07 AM
Sonic
Sonic - avatar
+ 1
A condition generally contains a conditional operator.
23rd Dec 2020, 7:07 AM
Sonic
Sonic - avatar
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
24th Dec 2020, 3:42 PM
Avalon