Hello,
In your last example while teaching if, else and elif statements, you used the command “sign” instead of “print”. Why is that so? And when do we use “sign” and when do we use “print”?
"sign" command in Control Flow Statements
Hello @Sky, sign is just a variable or you can use anything else instead of sign word, but print is pre defined keyword which is used to print the characters or the variables, integers.
For that we just need to write print(then inside the parenthesis comes the name of the variable)
Suppose a = 5
print(a)
# Output : 5
Suppose name = ‘John Doe’
print(a)
# Output : John Doe
I hope it is clear to you. If there is any other doubt, pls feel free to ask.
Thanks
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.