Re: Welcome to the "python-uk" mailing list
Jonathan Fine <[email protected]> Sat, 28 Jul 2018 12:54:20 +0100
| Newsgroups | gmane.comp.python.org.uk |
|---|---|
| Message-ID | <CALD=Yf_5b59k=m1Rzs5zKfmd6e0XOw0Rcf_5+zeXQ69m3xzCCQ@mail.gmail.com> |
Hi Asad Here's a method I find useful. It is to start with the easiest problem you can't solve. Your problem is > I would like to do a rpm version check between the two list (list1 and list2) > so it only prints the rpm from list1 which are not installed and version available in list2 is higher or lower So break it down into smaller, easier parts. For example, suppose len(list1) == len(list2) == 1. Can you solve the problem in this case. I think you may already have the regular expression. By the way, have you tried http://www.pythontutor.com/ http://www.pythontutor.com/visualize.html#mode=edit They might help you a lot. Good luck. -- Jonathan