Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: format strings syntax error
Post: RE: format strings syntax error

Yup, that was it! I've been practicing using an online editor and when I checked I saw it was an older version. I found a 3.6 one and now it works. Lesson learned, thanks!
VikramSuh General Coding Help 2 3,528 Sep-06-2018, 11:41 AM
    Thread: format strings syntax error
Post: format strings syntax error

I'm a noob doing an introductory lesson on format strings. The example given in the lesson keeps giving an error, even when I directly copy/paste. Here's the code: my_height = 80 print(f"He's {my_hei...
VikramSuh General Coding Help 2 3,528 Sep-06-2018, 11:03 AM
    Thread: Confused by this modulo equation
Post: RE: Confused by this modulo equation

Okay, I finally understand, I had the operator precedence wrong. So 25*3 = 75, then we do 75 % 4 = 3, THEN we finally subtract 3 from 100, to get 97. I'll have to practice, ha ha. Thanks for the hel...
VikramSuh General Coding Help 3 3,209 Sep-05-2018, 12:43 PM
    Thread: Confused by this modulo equation
Post: Confused by this modulo equation

This is probably a simple question for experienced users...I'm just starting with Python and I'm working with modulo equations. The tutorial I'm using had this equation: (100 - 25 * 3 % 4), and the re...
VikramSuh General Coding Help 3 3,209 Sep-05-2018, 10:56 AM

User Panel Messages

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