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

Python > String-1 > hello_name
prev  |  next  |  chance

Given a string name, e.g. "Bob", return a greeting of the form "Hello Bob!".

hello_name('Bob') → 'Hello Bob!'
hello_name('Alice') → 'Hello Alice!'
hello_name('X') → 'Hello X!'

...Save, Compile, Run

See also Python Example Code. Python help docs: Python Strings | Python Lists | Python If Boolean


prev  |  next  |  chance   |  CodingBat  >  String-1

Forget It! -- delete my code for this problem 103.0

Copyright Nick Parlante 2006-10 - privacy