• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

True and false

What is the purpose of true and false?

python
9th Jan 2022, 3:26 AM
dap
dap - avatar
2 Answers
+ 10
It's used to represent the truth value of an expression.
9th Jan 2022, 3:13 PM
Vaibhav
Vaibhav - avatar
+ 1
The True keyword is a Boolean value, and result of a comparison operation. The True keyword is the same as 1 (False is the same as 0). // https://realpython.com/JUMP_LINK__&&__python__&&__JUMP_LINK-boolean/ https://www.w3schools.com/python/ref_keyword_true.asp https://canvas.bham.ac.uk/courses/16048/pages/booleans https://pythonprogramminglanguage.com/booleans/ https://www.w3schools.com/python/python_booleans.asp
9th Jan 2022, 3:51 AM
NEZ
NEZ - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Linking GitHub with Sololearn profile
1 Votes
Error in python
3 Votes
Am getting discourage in my Language, Help me out🙏🙏
1 Votes
Is the Coding Certificate Worth it??
3 Votes
Model Context Protocol ? What is it ?
2 Votes
High paying job?
2 Votes
Do you Think Sololearn should add GDscript?
2 Votes
Why Sololearn Removed Our Saved Private Project (Codes), I Can't Find This Option.
2 Votes
Not Accessing Message Function
0 Votes
Pls wat is the answer for dis question
0 Votes