Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String not callable
#2
You need the % operator for string formatting, like you have on all of the other lines.

That is and old, clunky way to handle string formatting. You should look into the format method of strings, or the even newer f-string syntax (Python 3.6+).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
String not callable - by nexahs - Feb-08-2019, 10:46 PM
RE: String not callable - by ichabod801 - Feb-08-2019, 10:52 PM
RE: String not callable - by nexahs - Feb-09-2019, 01:45 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020