Skip to content

Commit

Permalink
Added chained-comparison message example (#6107)
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 e52875a commit c002f59
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 c002f59

Please sign in to comment.