Even though Rakesh's answer is perfectly fine, if you're using Python >= 3.6, you can also use f-strings for shorter syntax (note the added f before the second string):
Pn = input("Give the name of the Project.")
import shutil as sl
sl.copytree(r"C:\Users\Desktop\Automate\Template\C", rf"C:\User\Desktop\{Pn}")
A couple more things to note:
- PEP-8 suggests lowercase_with_underscore naming for variables, methods and functions (e.g. Pn should be pn)
- It is idiomatic to Python that variable names read as English rather than, obscured, low-level, shortened names (e.g. pn should be project_name) - see The Zen of Python for more such "philosophical" principles
- It is generally a good idea to have imports right on top of your program, since you can easily check out its dependencies and fail-fast on ImportError (see this answer for more details)