To run the current open Python program in vim, type: :!python % If you are new here, you might want to subscribe to the RSS feed or newsletter. Enter your email address:
Posted in Python
|
Tagged Python, vim
|
In Python you can store functions in a dictionary. You can then call the functions via the dictionary key. Continue reading →
Python Set is unordered unique collection of objects. We can use Set to find the intersection of two lists/tuples. Continue reading →
Python tuple is immutable. Therefore, it cannot be changed. To sort a Python tuple, we can create a new list using sorted() method. Continue reading →
The Python list can be sorted by directly applying the sort() method to the list, and indirectly by using the sorted(). Continue reading →
Posted in Python
|
Tagged list, Python, sort, sorted()
|