0

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.

Edited by jxj123: n/a

2
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by jxj123
0

Did you try a double percent?
%%

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.