numbers

0

given a list of numbers, write a list comprehension that produces a list of only the positive numbers in that list. eg:- input = [-2, -1, 0, 1, 2] output = [1,2]

By Beginner Jean Zieme at Sep 03 2020

0

provided is a list of numbers. for each of the numbers in the list, determine whether they are even. if the number is even, add true to a new list called is_even. if the number is odd, then add false.

By Beginner Herman Willms at Oct 01 2020

0

find the two non-repeating elements in an array of repeating elements/ unique numbers 2

By Beginner Van Auer at Jun 12 2021

0

7 numbers specify year, month, day, hour, minute, second, and millisecond (in that order):

By Wooden Hammer Badie96 at May 01 2021

0

given a set of candidate numbers a and a target number b, find all unique combinations in a where the candidate numbers sums to b. the same repeated number may be chosen from a unlimited number of times.

By Beginner Cathy Pfeffer at Apr 03 2021

0

write n lines with m numbers each that describe the layout of the second layer in the way shown above

By Beginner ldhoang at Dec 28 2020

0

which block of code will sum the numbers from 1 to n (including n) and store it in the variable "sum"?

By Beginner Camille Purdy at Sep 23 2020

0

write a program to match a no. which is entered by user with random number .if both numbers are matched then you win otherwise you lose

By Beginner David Deckow at Jul 07 2021

0

given two integers a and b, which can be positive or negative, find the sum of all the integers between including them too and return it. if the two numbers are equal return a or b.

By Wooden Hammer Barbara Bernhard at Mar 20 2021

-6

swap two numbers without using a third variable ( all possible ways ).

By Beginner dahveed at Feb 15 2021


Related code examples


Code examples by languages