Can you tell what will be the syntax of printing 2 parameters. For example:
def function(name,roll_no):
print("hello {} {}".format(name).format(roll_no)
I don’t know what is its syntax .I want name as well as roll no in the output
Can you tell what will be the syntax of printing 2 parameters. For example:
def function(name,roll_no):
print("hello {} {}".format(name).format(roll_no)
I don’t know what is its syntax .I want name as well as roll no in the output
Hey @vageesha,
So there are multiple ways to achieve this task, some of them are:-
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.