0
if Julian_Date > Base_Date :
    Target = (Julian_Date - Base_Date) % 28
    print First [Target], Second [Target], Third [Target]
    Shift_Set = [First [Target], Second [Target], Third [Target]]
elif    (Julian_Date < Base_Date) & (Julian_Date != 28) & (Julian_Date !=0):
        Target = (Base_Date - Julian_Date)
        Shift_Set=[First[(28- Target)],Second[(28- Target)],Third[(28- Target)]
else pass


#the else statement comes up with an error!
3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by vegaseat
0

else is not according to Python syntax, also your naming of variables does not follow convertion of PEP8, which says that Capital letter names should be class names and also your spacing does not follow the standard, there should not be space before indexing bracket, for example.

1

Line 7 needs an extra ] at the end
line 8 needs to be else:

Are you sure you want & rather than and

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.