Skip to content

Commit f468b5d

Browse files
matusvalosprytnykPierre-Sassoulas
authored
Added comparison-with-itself message example (#6157)
Co-authored-by: Vladyslav Krylasov <[email protected]> Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent a36f152 commit f468b5d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def is_an_orange(fruit):
2+
an_orange = "orange"
3+
return fruit == fruit # [comparison-with-itself]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def is_an_orange(fruit):
2+
an_orange = "orange"
3+
return an_orange == fruit

0 commit comments

Comments
 (0)