+ Reply Thread
def multiplier(a, b):
i =0
while b:
if i > b: break
print(a, 'x', i, '=', a*I)
i += 1
Not a python user so trying to analyse your code
// defines or creates a function //with parameters a and b def multiplier(a, b): // initializes a variable i to 0 i =0 // loops through b which should be a number while b: // if i (initialized above) is greater than argument b, break the loop if i > b: break // prints first argument (a) // concats it with string x and argument (I) // and carries out multiplication with argument a and i print(a, 'x', i, '=', a*I) // adds 1 to i to make the loop continuous till it breaks above i += 1

I tried Abi?
You guys are trying to confuse person here o!
Writing codes?
I am thinking writing tutorials for beginners would really be ideal to keep people here. They learn, ask questions and make references. With that, they can tempt writing and presenting codes for reviews and corrections. Starting out by pushing out codes without the basics could scare newbies away as they would think beginners don't belong here. Since we are just taking off, let's keep things a little low. #my2cents
You have my gbosa. Again gbosa. Again gbosa. You are very on point.
You did perfectly beautiful
That is intuitive.
I was surprised that despite how popular Python is, no one was here so I just had to put something up.
That was a brilliant move.
i am liking this site... oya oga dhtml hope say our emojis done dey ready baaa... cos we'll be needing them soon
Back to top