+ 1
Write the definition of a function Modify(L) in python, which should divide by three to all the multiple of 3
5 Antworten
+ 5
Saumya Jain
Looks like homework
Do you have an attempt to post with this directive?
+ 4
Kindly share your attempt!
+ 3
Jay Matthews
Thanks for info.
We just keep trying
🤞🙄👍
+ 1
do You want like this suppose if any number is 27
then it should be divisible by all multiple of 3 and multiple should be till number/2
Simply call your modify function and pass any value
Then u need loop to check multiple of 3
while(L%i==0)
i+=3 and your i should be alway increment by three
you can do it first try it by self
+ 1
Thanks for everyone help