1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | lst=list(map(int,input("Enter number seperated by space ").split())) s=0 try: in6=lst.index(6) in7=lst.index(7) except ValueError: in6=1;in7=0 if in6<in7: for i in range (in6): s+=lst[i] for j in range ((in7+1),len(lst)): s+=lst[j] else : s=sum(lst) print("sum=",s) |
1. Email is one of the common ways by which your computer can catch a virus . So it is always recommended to stay away from SPAM. Open only those emails that has it’s origin from a trusted source such as those which comes from your contact list. If you are using your own private email host (other than gmail, yahoo, hotmail etc.) " then it is highly recommended that you use a good anti-spam software. And finally NEVER click on any links in the emails that comes from untrusted sources. 2. USB thumb/pen drives is another common way by which viruses spread rapidly." So it is always a good habit to perform a virus scan before copying any data onto your computer. NEVER double-click the pen drive to open it. Instead right-click on it and select the option “open”. This is a safe way to open a pen drive. 3. Be careful about using MS Outlook. Outlook is more susceptible to worms than other e-mail programs, unless you have efficient Anti-Virus programs running. Use Pegasus ...
Comments
Post a Comment
share your thoughts ....