Ask Your Question
-1

What is wrong with this code

asked 2020-07-12 12:36:30 -0500

this post is marked as community wiki

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-07-13 07:24:08 -0500

updated 2020-07-14 09:36:50 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-07-12 12:36:30 -0500

Seen: 682 times

Last updated: Jul 14