Question

Write a Python program in repl.it that calculate the ouput of this function w(n) 2n-l . 100 . (20-n) 0n20 - -

0 0
Add a comment Improve this question Transcribed image text
Answer #1
def w(n):
    return (2 ** (n - 1)) * 100 * (20 - n)


for i in range(21):
    print(i, '\t\t', w(i))

1000.0 1900 3600 6800 12800 24000 44800 83200 153600 281600 512000 921600 1638400 2867200 4915200 8192000 13107200 19660800 2

Please let me know if you have any doubts Please upvote this answer. Thanks!!

Add a comment
Know the answer?
Add Answer to:
Write a Python program in repl.it that calculate the ouput of this function w(n) 2n-l ....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT