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!
geansra
-3
Newbie Poster
Recommended Answers
Jump to PostLine 7 needs an extra ] at the end
line 8 needs to be else:Are you sure you want & rather than and
All 2 Replies
TrustyTony
888
pyMod
Team Colleague
Featured Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.