Computer Science, asked by tripathigk, 9 months ago

Create two variables 'x', and 'y': 'x' - positive infinity 'y' - negative infinity Print 'x' and 'y' in separate lines, and also print the output of the math.isinf function, obtained when 'x' and 'y' are passed as arguments, in separate lines.

Answers

Answered by usmanmalik443
0

Answer:

don't have x and y

Explanation:

bcoz x is left and y I don't know what

Answered by trishabhattacharjee
8

Answer:

import math

x=float('inf')

y=float('-inf')

print(x)

print(y)

print(math.isinf(x))

print(math.isinf(y))

Explanation:Code written in Python 3

Similar questions