#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ENGG1811 Lecture 2 Purpose: This example is used to explore the if-else statement Program description: This program - asks the user to input a real number - determines whether the number is non-negative or negative - outputs the decision to the user """ # Ask the user to input a number num = float(input('Please input a number: ')) # Decide if number is non-negative or negative # print('The number entered is non-negative') # print('The number entered is negative')