I'm trying to print the variable and their value both in the below code
New_veh = "C:\new_buy\Jan"
Used_veh = "C:\usedBuy\Jan"
if(Type=='N'):
Model = New_veh
elif(Type=='U'):
Model = Used_veh
....
print(Model, "Analysis File is used for Model building :", Model)
Output :
C:\new_buy\Jan Analysis File is used for Model building :C:\new_buy\Jan
In the above code Model variable resolved to the path variable New_veh or Used_veh based on the condition at both places in print statement.
Is there any way it will resolve at one place only. I'm trying to achieve results like this
New_veh Analysis File is used for Model building :C:\new_buy\Jan
Here it resolved to path at end but in start it print as it is.
Any help on this ?
\nwill cause error.dict.