-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCr7.py
More file actions
33 lines (26 loc) · 666 Bytes
/
Cr7.py
File metadata and controls
33 lines (26 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> thing="animal"
>>> animal = "cat"
>>>
>>> if thing == "animal":
if animal =="cat":
print("this is a cat")
this is a cat
>>> if thing == "animal":
if animal =="cat":
print("this is a cat")
this is a cat
>>>
>>>
>>> thing=="animal":
SyntaxError: invalid syntax
>>> thing = "animal"
>>> animal = "cat"
>>> if thing == "animal":
if animal == "cat":
print('this is a cat')
else:
print('i dont know what this animal is')
this is a cat
>>>