You need to sign in to do that
Don't have an account?
Hariharan M 18
create list on numbers
can anyone solve the below questions?
create list on numbers
-> 1.find biggest number in that list
-> 2.find sum of odd and even numbers in the list (seperately)
-> 3.find any negative numbers in the list
-> 4. count number of negative numbers in the list and print the count
-> 5.reverse a list and store in a new list, print the new list
create list on numbers
-> 1.find biggest number in that list
-> 2.find sum of odd and even numbers in the list (seperately)
-> 3.find any negative numbers in the list
-> 4. count number of negative numbers in the list and print the count
-> 5.reverse a list and store in a new list, print the new list
1. To find biggest number in that list 2. sample logic to caluclate the sum of odd number in collection 3. to count the number of negative number, take the reference from here :-
https://stackoverflow.com/questions/65123750/how-to-count-all-the-negative-numbers-in-a-list
5. To reverse the list and store in new list :-
Kindly mark it as the best answer if it works for you.
Thanks & Regards,
Priya Ranjan