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

 

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

Taylor Swift is coming to Australia (Eeeeeeeee!!!) and has concerts in Sydney and Melbourne. The number of tickets sold in each concert is stored in a list. Define a function that when passed this list, returns the total tickets Tay Tay sold.


tay_tay_tix_sold([10000, 100002, 10323]) → 120325
tay_tay_tix_sold([]) → 0
tay_tay_tix_sold([8]) → 8

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

def tay_tay_tix_sold(tay_tay):

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: 2 Post-solution available

Copyright Nick Parlante 2017 - privacy