Toggle navigation
Log in
Sign Up
Log in
Sign Up
Appium
C
C#
C++
Docker
Go
Informatica
Java
JavaScript
Kafka
Numpy
Oracle
Pandas
PHP
Py Spark
Python
R
React Native
Scipy
SFTP
Tableau
Teradata
TGMC
UNIX
Introducing
Radical.sh
Forget Code launches a powerful code generator for building API's
Forget_Code.Models.CategoryViewModel
Add a new snippet
Basics
3
Conditional Statements
2
Dictionary
4
Input & Output
1
Lists
20
Sorting
1
Strings
1
Tuple
4
Choose Category
if statement in Python
Forget Code
Python
if statement
In python if statement can be used along with conditional statement to check whether the condition is met.
Example :
sum = 11 if sum > 10: print("sum is greater than 10")
Output
sum is greater than 10
Tags for if statement in Python
if statement in python
if with condition in python
DP_Conditional Statements
Contribute to Forget Code, help others.
Add snippet