Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

0 pts) 1 have a dictionary defined by pointe -A 2 B:3,C: 8,D: 3, E:) which assigns a point value to some of the letters.

image text in transcribed
0 pts) 1 have a dictionary defined by pointe -A 2 B:3,C: 8,"D: 3, "E:) which assigns a "point value" to some of the letters. Write code which tals a list named lets, and then prints out the sums of the point values for the elements of lets. Any letter not in the dictionary should get O peints. For ecampie,t then your code should print out 12, since 5+2+3+2+0-12 11. (5 pts) A sequence of numbers is given by 3, 10,30, 300,9000, 2700000,. where the first two elements are 3 and 10, and every element after is the product of the previous two. Write a Python function ff whose input is a positive integer n, and whose output is the nth number in the sequence. For excample ff (2) should have the value 10, and fs (4) should have the value 300

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students explore these related Databases questions