num = -19 if num>=0: if type(num)==float: print(f"{num} is a positive floating-point number.") elif type(num)==int: print(f"{num} is a positive integer.") else: if type(num)==float: print(f"{num} is a negative floating-point number.") elif type(num)==int: print(f"{num} is a negative integer.")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter