Computer Science, asked by s153411asurojit18824, 25 days ago

Write a script to print following:(python)
8
86
864
8642

Answers

Answered by FantomDX
1

Answer:

i think

num = "8642"

for i in range (4) :

   print (num[ : i + 1])

Similar questions