What is wrong with this code
if YCentury == 23: CenturyCode = 0 if YCentury == 20: CenturyCode = 6 if YCentury == 24: CenturyCode = 6
add a comment
First time here? Check out the FAQ!
asked 2020-07-12 12:36:30 -0500
This post is a wiki. Anyone with karma >75 is welcome to improve it.
if YCentury == 23: CenturyCode = 0 if YCentury == 20: CenturyCode = 6 if YCentury == 24: CenturyCode = 6
As pasted, there is a space before the first 'if' and you didn't use markup to make the code appear on separate lines and YCentury is not defined but otherwise it looks OK.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2020-07-12 12:36:30 -0500
Seen: 1,837 times
Last updated: Jul 14 '20