<div dir="ltr">Hi!<div><br></div><div>This is my first time I'm sending an email to the python-ideas mailing list. I've got an enhancement idea for the built-in print function and I hope it is as good as I think it is.</div><div><br></div><div>Imagine you have a trial.py file like this:</div><div><br></div><div>a = 4</div><div>b = "Anand"</div><div><br></div><div>print("Hello, I am " + b + ". My favorite number is " + str(a) + ".")</div><div>OR</div><div>print("Hello, I am ", b, ". My favorite number is ", a, ".")</div><div><br></div><div>Well I've got an idea for a function named "print_easy" (The only valid name I could come up with right now).</div><div><br></div><div>So print_easy will be a function which will be used like this (instead of the current print statement in trial.py) :</div><div><br></div><div>print_easy("Hello, I am", b, ". My favorite number is", a ".")<br></div><div><br></div><div>Which gives out:</div><div><br></div><div>Hello, I am Anand. My favorite number is 4</div><div><br></div><div>The work it does is that it casts the variables and it also formats the sentences it is provided with. It is exclusively for beginners.</div><div><br></div><div>I'm 14 and I came up with this idea after seeing my fellow classmates at school struggling to do something like this with the standard print statement.</div><div>Sure, you can use the format method but won't that be a bit too much for beginners? (Also, casting is inevitable in every programmer's career) </div><div><br></div><div>Please let me know how this sounds. If it gains some traction, I'll work on it a bit more and clearly list out the features.</div><div><br></div><div>Thanks,</div><div>Anand.</div><div><br></div><div><br></div><div><br></div></div><div dir="ltr">-- <br></div>Anand.