0

How would my def need to be so that if I enter 'hello everyone' it returns '#HelloEveryone'?

def space(something): return(something.replace(' ', ' ') def capital(something): return(something.title()) def cat(something): return('#' + something) def generator(): return(space(capital(cat(input('Enter something: '))))) generator() Does not run

28th Jul 2020, 6:35 PM
Ale
2 Answers
+ 3
Can you attach your attempt so we may see where you are having trouble
28th Jul 2020, 7:15 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
def response(x): return f'1 {x}!' print(response(input() or 'Hello World'))
28th Jul 2020, 7:22 PM
Rik Wittkopp
Rik Wittkopp - avatar