hi, can u tell me how to remove blank spaces in login and password fields in python language.

Recommended Answers

All 2 Replies

Can be as simple as:

pw = "pass word"
pw = pw.replace(" ", "")

print(pw)  # -->  password

thank u very much for sending the reply...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.