Reaper
Reaper

Reputation: 1

Adding quotes automatically on input

So if I want an user to input his Path he has to add quotes manually. So it would look like that:

Path = input('Enter Path:\n')

And how can I add quotes now so the user can write his path in between them? Like that: " " <---- and in between the quotes the user can enter his path.

Upvotes: 0

Views: 552

Answers (1)

Charles Duffy
Charles Duffy

Reputation: 295785

Assuming Python 2 (as this question shouldn't come up in Python 3) --

Use raw_input() instead, and literal quotes aren't needed.

Upvotes: 3

Related Questions