Computer Science, asked by nehal2676, 11 months ago

create a python script to print "hello, world! " four times ​

Answers

Answered by rakeshchennupati143
2

Program:

for i in range ( 0,4,1 ) :

     print("hello, world!")

Explanation:

in python the for loop has more than 2 syntax's one of them is this the phrase "in range" specifies the variable "i" and scope of the variable.

0 defines i = 0

4 defines the condition whether i < 4 or not

1 defines the increment of the variable i

so this goes on printing "hello, world!" 4 times

( give brainliest if you like my program ) :)

Similar questions