def is_list_even(my_list):
for i in my_list:
if(i%2 != 0):
return False
return True
def is_list_odd(my_list):
for i in my_list:
if(i%2 == 0):
return False
return True
def main():
n = int(input())
lst = []
for i in range(n):
lst.append(int(input()))
if(is_list_even(lst)):
print('all even')
elif(is_list_odd(lst)):
print('all odd')
else:
print('not even or odd')
if __name__ == '__main__':
main()
Answer:
Visual.
Explanation:
Some programmers include scroll bars, title bars, buttons, and menus in a program simply by adding them to a layout through a process called visual programming.
A visual programming language is also commonly referred to as graphics user interface builder (GUI builder) and can be defined as a programming tool that avails programmers the ability to develop software programs (applications) using graphical elements and figures rather than texts alone.
Some examples of visual programming language are executable UML, Blockly, Kodu, Alice, Lego mindstorms, Gamemakers etc.
Answer:
Please the code snippet below, the code was writen in Kotlin Language
Explanation:
const val inches:Int= 12 . //This is the const value
fun main(args: Array<String>) {
//this will ask the user for input
print("Enter a number")
//this will do the conversion
var valueInFeet= Integer.valueOf(readLine())*inches
print("The value in feet is $valueInFeet feet(s)")
}
Computer simulations could reduce the need for testing on animals.
Answer:
automatically
Explanation:
You can tell power-point to start a video added to it upon clicking it or another way to do it is to specify that it should play automatically as soon as the slide appears in the course of the slide show or presentation. One can go about it in different ways; using the audio/video tools playback tab to start the video immediately the slides appear or; starting the video or audio after a delayed period using the animation options.