Python Homework ECE 1 This week, you will watch a series of videos on lynda.com to teach you the basics...

profilesuls

Python Homework ECE 1 This week, you will watch a series of videos on lynda.com to teach you the basics of Python. This class assumes you have some basic knowledge of programming, which was taught by the previous series of videos we watched over the past two weeks. I you have not completed those videos, and you do not have previous experience with programming, finish those videos before beginning the Python courses. You can download and install a programming environment for working with Python if you want. If not, you can go to http://pythonfiddle.com/ to have an online python interpreter. This works well for basic assignments like that in this class, although it will be woefully inadequate for future projects in other classes. 1. Watch the following section in Up and Running with Python with Joe Marini on lynda.com: 1. Introduction 2. Preparing the Development Environment 3. Python Basics 4. Working with Dates and Times 2. Create a simple “Hello, World!” program using Python 3. Write a program that calculates n! (n-factorial). The program should at the beginning of the calculation print “Now calculating n!”, with “n” being whatever real integer is being used in that instance of the program. It should then print what n! calculates to. 4. Write a program that uses loops to generate pyramid-like shapes as shown below, using dashes:

 

    • 11 years ago
    • 5
    Answer(0)
    Bids(0)