55317/how-to-find-the-greatest-number-in-a-list-in-python
1. By using max function -
highest = max(11, 21, 31)
print(highest) # prints 31
2. Without using max function
a=[11,22,33,44,66,77,99,88,999] max= 0 for i in a: if i > max: max=i print(max) # prints 999
following way to find length of string x ...READ MORE
Hi, good question. If you are considering ...READ MORE
You can use the exponentiation operator or ...READ MORE
If you want to find the value ...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
Permutation is an arrangement of objects in ...READ MORE
To initialize an empty list do this: new_list ...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.