Skip to content

Instantly share code, notes, and snippets.

@ChaitanyaBaweja
Created May 20, 2020 17:16
Show Gist options
  • Save ChaitanyaBaweja/13d5ffe6c9bc8b362213dee6e963356d to your computer and use it in GitHub Desktop.
Save ChaitanyaBaweja/13d5ffe6c9bc8b362213dee6e963356d to your computer and use it in GitHub Desktop.
# Initializing a variable with positive infinity
positive_inf = float('inf')
print('Positive Infinity: ', positive_inf)
# Initializing a variable with negative infinity
negative_inf = float('-inf')
print('Negative Infinity: ', negative_inf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment