Cpsc111A-F19-Asg1 (1).docx - CPSC111A-Introduction to...

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 with functions & Numbers Name: ____________________________ Student number: __ __ __ __ __ __ Name: ____________________________ Student number: __ __ __ __ __ __ ASSIGNMENT MARK : ________ / 50 Due Date: Thursday, Sep 26 th As always, all your answers should use functions and every function should have a documentation string explaining the purpose of the function. Use the Python template given below at the top of your program you submit (don’t forget to modify it to include your information; your name and your student number.) # 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 case you run into problems. Submit your assignment to the instructor by email at: [email protected] 1 | am/cpsc111A-F19-Asg1.docx Assigned: Saturday Sep 14, 2019 FYI # n will hold an integer provided by the user (or takes an integer input from the user) n = int(input("Enter number: ")) # nf will hold a float number provided by the user (or takes a float input from the user) nf = float(input("Enter number: ")) # st will hold a string provided by the user (or takes a string input from the user) st = input("Enter string: ") print('n = ', n) print('nf = ', nf) print('st = ', st)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture