Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String not callable
#3
(Feb-08-2019, 10:52 PM)ichabod801 Wrote: 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+).

Doh thank you, I can't believe I didn't cop that, I kept checking to make sure I had everything typed correctly.

We just started doing some coding in college so I wanted to learn some more stuff as I mainly use expressions for effects like fire etc. so I found that tutorial and just wanted to give it a try.
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