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
TrustyTony 888 ex-Moderator 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.