Python में डेटा टाइप्स
Jason Myers
Instructor
TrueFalseहिज्जों के बड़े अक्षरों पर ध्यान दें, Python और अन्य भाषाओं के बीच स्विच करते समय यह गलती करा सकता है।
out_of_cookies = True
if out_of_cookies:
print("Run to the store NOW!")
Run to the store NOW!
apples=2
if apples:
print("We have apples.")
"We have apples."
apples=0
if apple:
print('We have apples.')
1"Cookies"["Cake", "Pie"]{"key": "value"}0""[]{}Nonecookie_qty == 3
== equal to!= not equal to< less than<= less than or equal to> greater than>= greater than or equal tox = 0.1 + 1.1
x == 1.2
False
print(x)
1.2000000000000002
floats की equality तुलना में सावधान रहें!
Python में डेटा टाइप्स