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

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

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

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 -