First time here? Check out the FAQ!
-1

What is wrong with this code
 

if YCentury == 23: CenturyCode = 0 if YCentury == 20: CenturyCode = 6 if YCentury == 24: CenturyCode = 6

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
updated 4 years ago
This post is a wiki. Anyone with karma >75 is welcome to improve it.

Comments

see more comments

1 Answer

0

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 4 years ago, updated 4 years ago
link

Comments

see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)