FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Complete the syntax for ‘for’ structure in Python:
A
for variable in ____ :
B
print (k, “times 4 is “, k*4)
C
A.(numbers)
D
B.range(numbers)
E
C.Starting number to ending number
Explanation: 

Detailed explanation-1: -The syntax of the Python programming language is the set of rules which defines how a Python program will be written. Python Line Structure: A Python program is divided into a number of logical lines and every logical line is terminated by the token NEWLINE. A logical line is created from one or more physical lines.

Detailed explanation-2: -Python print() Function The print() function prints the specified message to the screen, or other standard output device. The message can be a string, or any other object, the object will be converted into a string before written to the screen.

There is 1 question to complete.