String replacement using modulo in Python for raw_input? -


Is it possible to generate in the following ways?

  name = raw_input ("Enter name:") age = raw_input ("hello% s, please enter your age")% name   

I know that I can move one + to add stars, but if it does work in any way.

simply insert the variable inside parentheses

  age = raw_input ( "Hello% s, please enter your age"% name ")    

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -