Posts

Learn to Program: The Fundamentals - Week 5 Exercise Answers

Learn to Program: The Fundamentals - Week 5 Exercise Score of  13.75  out of  14.00 Open up IDLE and try out all the code as you do the exercise! Question 1 Select the expression(s) that evaluate to  True . Your Answer Score Explanation [1, 2, 3] in len('mom') Correct 0.25 len('mom') in [1, 2, 3] Correct 0.25 int('3') in [len('a'), len('ab'), len('abc')] Correct 0.25 '3' in [1, 2, 3] Correct 0.25 Total 1.00 / 1.00 Question Explanation Evaluate each of these expressions in the Python shell and, if the results surprise you, you should also evaluate each subexpression. Question 2 Consider this code: def mystery(s): i = 0 result = '' while not s[i].isdigit(): result = result + s[i] i = i + 1 return result Select the function call(s) that result in an error. Your Answer Score Explanation mystery('abc') Correct 0.25 mystery('abc123...

learn To program: The Fundamentals Week 7 Answers

Question 1 Consider this code: >>> d = {'a': 1, 'b': 2} >>> # CODE MISSING HERE >>> d {'a': 1, 'c': 3, 'b': 2} Write the missing assignment statement that that modifies the dictionary as shown. (Just write the assignment statement; don't write the  >>>  part.) You entered: Your Answer Score Explanation d['c'] = 3 Correct 1.00 Total 1.00 / 1.00 Question Explanation You need to add  'c'  as a key and 3 as the value associated with that key. Question 2 Consider this code: >>> d = {'a': 1, 'b': 2} >>> # CODE MISSING HERE >>> d {'a': 1, 'b': 3} Write the missing assignment statement that modifies the dictionary as shown. (Just write the assignment statement; don't write the  >>>  part.) You entered: Your Answer Score Explanation d['b'] = 3 Correct 1.00 Total 1.00 / 1.00 Question Expla...

How To Get Free Internet Data

1)Check out FreedomPop This is a mobile carrier that I think more people should know about. FreedomPop is a mobile carrier that provides free cell phone plans. And it’s completely free! I know it’s hard to believe, but it is true.Sure, you don’t get access to as many fancy features as you do with paid phone plans, but, you do get access to some free internet. It’s really easy to sign up, and it’s a simple way to get free internet on your cell phone, on both Android and iOS devices. You can use your existing phone if it meets the carrier’s criteria or you can purchase one from the FreedomPop phone store. The only stipulation is that your phone needs to be Sprint compatible. So if you want free internet for your cell phone, you should definitely consider signing up for a plan with FreedomPop. 2) Mcent Download: Mecent on Google Play Mcent works in a similar way to Gigato. First, you install and open Mcent. Once it’s open, it’ll display a list of free apps for you to try. If you do...

LEARN TO PROGRAM: THE FUNDAMENTALS ASSIGNMENT 02 (Coursera)

learn To Program: The Fundamentals Assignment 02 Coursera Download it here: Assignment 02

Learn to program: The fundamentals Assignment 03

Learn to program: The fundamentals Assignment 03: Download it here: Assignment 03