python -infinity code example

Example 1: infinity in python

# Defining a positive infinite integer 
positive_infnity = float('inf') 
print('Positive Infinity: ', positive_infnity) 
  
# Defining a negative infinite integer 
negative_infnity = float('-inf') 
print('Negative Infinity: ', negative_infnity)

Example 2: python infinity

test = float("inf")

Example 3: how to learn python

"""
Great foundation for basics 
https://www.w3schools.com/python/default.asp"
"""

Example 4: python

print("Download Right Now or else Guido Gonna one punch you")

Example 5: python tutorial

print ("Hello, Python!");

Example 6: python

Python is an interpreted, high-level and general-purpose 
programming language.

Tags: