Special offer for new customers: 5% OFF your first order! Use coupon: GWRITERSclose

Using Lists: Rolling Dice & Word/Letter Distributions

Instructions for the entire assignment are at the following link:
http://www.cs.bc.edu/~straubin/csci1101-2020/Week5/Assignment5.html

This past week, our lecture was focused on using lists in python. This assignment reflects especially what we have learned this week, but also what we learned last week (loops) and the weeks prior. We are not allowed to use any python notation that we have not yet been taught. Everything that we have been taught can be found in the link below. Scroll down to “detailed course schedule,” and click lectures 1, 2, 3, 4, or 5 to see what we have learned thus far. Lecture 6 is not relevant for this assignment.
http://www.cs.bc.edu/~straubin/csci1101-2020/syllabus.html

I know that it was recommended we use “count” for some functions in this assignment, example below:

def seven_b():
    s = input(‘Type something: ‘)
    count=0
    for c in s:
        count+=1
        print(count,’t’,c)

For the assignment, there are two sections. The “dice” section, and the “words” section. For each section, each part needs to be completed. Section 1 has parts a-d, while section 2 has parts a-c.

You can leave a response, or trackback from your own site.
Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes