MCPcopy Create free account
hub / github.com/DasyDong/developer-roadmap / func1

Function func1

code/run_comp.py:23–32  ·  view source on GitHub ↗
(l)

Source from the content-addressed store, hash-verified

21
22
23def func1(l):
24 if isinstance(l,str):
25 l = list(l)
26 l = [int(i) for i in l]
27 l.sort(reverse=True)
28 print l
29 for i in range(len(l)):
30 if l[i] % 2>0:
31 l.insert(0,l.pop(i))
32 print(''.join(str(e) for e in l))
33# func1('1982376455')
34##################################################
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected