+ 1

Shout function help ?

create a function named shout() that's adds three exclamation marks (!!!) to any string passed to the function

30th Jan 2017, 8:09 PM
Alejandro
Alejandro - avatar
3 ответов
+ 6
***for JavaScript * function shout(s){ return s+"!!!"; } ***for Java String shout(String s){ return s+"!!!"; }
30th Jan 2017, 8:11 PM
Pankaj Vaghela
Pankaj Vaghela - avatar
+ 6
***for C# string Shout(string s) { return s+"!!!"; }
30th Jan 2017, 9:01 PM
Jafca
Jafca - avatar
+ 2
***for Python to print the shout def shout(a) print ("a" + "!!!") shout("Is this loud enough") ------------------------------------- ***for Python to return it def shout(a): a = a + "!!!" return a yell=shout("go to hell") print(yell)
30th Jan 2017, 10:00 PM
LordHill
LordHill - avatar