100%(1)1 out of 1 people found this document helpful
This preview shows page 1 - 2 out of 4 pages.
CPSC111A-Introduction to computing By Dr. Ahmed Malki – Asg. #1 (Fall-2019)Assignment 1–Python Practice: working withfunctions & NumbersName: ____________________________Student number:__ __ __ __ __ __Name: ____________________________Student number:__ __ __ __ __ __ASSIGNMENT MARK:________ / 50Due Date: Thursday, Sep 26thAs always, all your answers should use functions and every function shouldhave a documentation string explaining the purpose of the function. Use thePython template given below at the top of your program you submit (don’tforget to modify it to include your information; your name and your studentnumber.)# Program: cpsc111A-F19-asg1.py# Author:Enter your Name and student number here# Class: CPSC 111A# Date: 13/09/2019# Task: Assignment #1# Purpose: Solving simple functions___________________#Do not wait until the last minute to do this assignment in caseyou run into problems.Submit your assignment to the instructor by email at:[email protected]1 |am/cpsc111A-F19-Asg1.docxAssigned: Saturday Sep 14, 2019FYI# n will hold an integer provided by the user (or takes an integer inputfrom the user)n = int(input("Enter number: "))# nf will hold a float number provided by the user (or takes a float inputfrom the user)nf = float(input("Enter number: "))# st will hold a string provided by the user (or takes a string input fromthe user)st = input("Enter string: ")print('n = ', n)print('nf = ', nf)print('st = ', st)