Given a variable name, if the value is
"Bob", display the string
"Hello, Bob!". Perform no action if the name is not equal.
python if name == 'Bob':
print 'Hello, Bob!'
if name == 'Bob':
print 'Hello, Bob!'
Submit a new solution for
python
There are 16 other solutions in
additional languages (
cpp,
erlang,
fsharp,
groovy ...)