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

 

tooLongForTwitter


tooLongForTwitter(myString): Twitter messages can't be more than 140 characters! Given a string myString, return True if the string is longer that 140 characters, and return False if the string is less than or equal to 140 characters.


tooLongForTwitter('The Analytical Engine weaves algebraic patterns, just as the Jacquard loom weaves flowers and leaves. -- Ada Lovelace, the first programmer') → False
tooLongForTwitter('Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal.') → True
tooLongForTwitter('They told me computers could only do arithmetic. -- Computer pioneer Grace Hopper') → False

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

def tooLongForTwitter(myString):

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

Post-solution available

Copyright Nick Parlante 2017 - privacy