73428/how-to-write-a-python-code-to-sort-a-numerical-dataset
I need to learn this for my interview, can anyone help me with the above-mentioned query?
Hi, @Roshni,
The code to sort a numerical dataset is as follows:
list = [ "13", "16", "1", "5" , "8"] list = [int(x) for x in the list] list.sort() print(list)
x="malayalam" y="" for i in x: ...READ MORE
David here, from the Zapier Platform team. ...READ MORE
You can use time.sleep(duration in second) READ MORE
Refer to the below code. data=’whatever your data ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
You can go through this: def num(number): ...READ MORE
Hey, @Roshni, Python has a regular expression module ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.