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
2 Antworten
+ 3
Can you attach your attempt so we may see where you are having trouble
+ 2
def response(x):
return f'1 {x}!'
print(response(input() or 'Hello World'))