hi, my code involves something like this:

IP = "123.123.123.123"

string = "Your IP is %s and it's 100% correct" % IP

The IDLE thinks the second % is a operator and I don't know how to make it as a regular text. please help.

Recommended Answers

All 2 Replies

Did you try a double percent?
%%

commented: according to your signature :D +2

Did you try a double percent?
%%

That works perfectly. thank you so much thines01 !!!!

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.