[Solved] How to swap maximums with the minimums? (python)
[ad_1] There is no method for this in python. You can try using primitive methods to build what you want using lists. This code does the job: #!/usr/bin/python a = [] b = [] nums = raw_input(“Enter input- “) #append all to a list for n in nums.split(): n = int(n) if n < 0: … Read more