• 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
How to add image in css while sololearn coding
0 Votes
Cities Sylines AI Model Clima 1.0
0 Votes
What courses should I take to be a data scientist
0 Votes
Python coding help
1 Votes
What company hired front-end developer after taking course in their website?
0 Votes
System designed to help
1 Votes
What are the best things to practice for better logic building?
0 Votes
Gide me the path of Cyber security
1 Votes