Skip to content

Commit

Permalink
Create Conditions
Browse files Browse the repository at this point in the history
If Statements
If-else Statements
Logical Statements
  • Loading branch information
PrajwalKatyal authored Aug 3, 2019
1 parent 6cfd74a commit f64cc39
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Conditions
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
movie_year = 2002
if(movie_year>2002){
print('Movie year is greater than 2000')
}else {
print('Movie year is not greater than 2000')
}

#Combining logical statements

'India'=='India' & 1999 != 1999 #and operator with !=
‘toy story'=='toy story' | 19995 <= 1990 #or operator with <=

0 comments on commit f64cc39

Please sign in to comment.