Answers for "what does * mean in python"

2

what does * mean in python in functions

>>> numbers = [2, 1, 3, 4, 7]
>>> more_numbers = [*numbers, 11, 18]
>>> print(*more_numbers, sep=', ')
2, 1, 3, 4, 7, 11, 18
Posted by: Guest on March-07-2020
5

// meaning in python

##  // Returns the integer value of the quotient 

eg 906 / 100 = 9.06

906 // 100 = 9
Posted by: Guest on February-09-2021
0

mean python

import numpy as np
values=[1,10,100]
print(np.mean(values))
values=[1,10,100,np.nan]
print(np.nanmean(values))
Posted by: Guest on March-21-2020

Python Answers by Framework

Browse Popular Code Answers by Language