You're shit outta luck man, i have no clue .
I'm in this class called CSE for school and it involves programming in python. The problem is I have been sick and gone for the last week so I have no idea what's going on or how to code any of it and now the teacher just announced that it's all due tomorrow at midnight so can someone please teach/help me code all of this?Thanks
Question 1
13. A social media site offers a contest to write a humorous short paragraph. A constraint on the creative format: the entry must include a question, a quote, a compound sentence, and an exclamation. These would contain the characters ?, ", ,, and !, respectively.
Create a function how_eligible(essay) that returns 0 to 4, equal to the number of these four characters that the essay included.As pair programmers, generate ideas for how to solve this problem, strategize, and then code and test iteratively.
In []:how_eligible('This? "Yes." No, not really!')
Out[]: 4
In []:how_eligible('Really, not a compound sentence.')
Out[]: 1
Question 2
15. Define a function roll_two_dice() that simulates rolling two six–sided dice and returns the total. Pair program, strategizing first.
In []: roll_two_dice()
Out[]: 7
Define a function guess_letter() that will pick one letter randomly from the alphabet.
Question 3
a. Define a function roll_hundred_pair() that produces a histogram of the results of 100 rolls of two 6-sided dice.
b. A lottery ticket contains five unique numbers. A set of unique numbers does not contain repeated elements. The winning combination of this lottery is chosen by picking five unique numbers. Define a function matches(ticket, winners) that takes two lists and returns an integer that says how many numbers the two lists have in common.
In []: matches([11, 12, 13, 14, 15], [3, 8, 12, 13, 17])
Out[]: 2
You're shit outta luck man, i have no clue .
--------------------------------------------------------------------------------------------------------------
So no one knows how to do this?
Gimme 5 dollars and I will do all of em. Gimme 10 dollars to get half of them right. Gimme 20 dollar to get all of them right