id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

gaurav1780@gmail.com 04_lists > tay_tay_revenue
prev  |  next  |  chance

Taylor Swift is coming to Australia (Eeeeeeeee!!!) and has concerts in Sydney and Melbourne. The ticket prices are stored in a list named tayTay1 and the corresponding number of tickets sold are stored in a list named tayTay2. Define a function that when passed these two lists, returns the total $$$ Tay Tay generated. You can assume the two lists are of the same length.


tay_tay_revenue([10, 20], [3000, 2000]) → 70000
tay_tay_revenue([79, 99, 139, 159, 199, 239, 309, 399], [1000000, 500000, 200000, 100000, 50000, 20000, 10000, 5000]) → 192015000
tay_tay_revenue([1], [100000]) → 100000

...Save, Compile, Run (ctrl-enter)

def tay_tay_revenue(tay_tay_1, tay_tay_2):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 3 Post-solution available

Copyright Nick Parlante 2017 - privacy