+ 1

True and true

Could somebody please clarify the difference between true and True, and false and False in Python?

25th Jan 2017, 11:23 AM
Abby Sawyer
Abby Sawyer - avatar
2 ответов
+ 5
True , False= Boolean true,false = u can declare as variable
25th Jan 2017, 1:05 PM
Sun
Sun - avatar
+ 2
Python is a case sensitive language so 'True' and 'true' both are different here True and False are Boolean constants, where as true and false u can use as variable names.
25th Jan 2017, 12:25 PM
Gopikrishna A
Gopikrishna A - avatar