• 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
Loops and conditions
2 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
How can I turn my .py files to .exe files?
1 Votes
Hey ! how to install modules on this app
0 Votes