Skip to content

Commit

Permalink
Added chained-comparison message example
Browse files Browse the repository at this point in the history
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
  • Loading branch information
matusvalo and sprytnyk committed Apr 2, 2022
1 parent 1fa9fba commit 9aea9ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/data/messages/c/chained-comparison/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
a = int(input())
b = int(input())
c = int(input())
if a < b and b < c: # [chained-comparison]
pass
5 changes: 5 additions & 0 deletions doc/data/messages/c/chained-comparison/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
a = int(input())
b = int(input())
c = int(input())
if a < b < c:
pass

0 comments on commit 9aea9ad

Please sign in to comment.