+ 1

Write the definition of a function Modify(L) in python, which should divide by three to all the multiple of 3

21st Oct 2021, 9:00 AM
Saumya Jain
Saumya Jain - avatar
5 Antworten
+ 5
Saumya Jain Looks like homework Do you have an attempt to post with this directive?
21st Oct 2021, 9:37 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 4
Kindly share your attempt!
21st Oct 2021, 10:07 AM
Saurabh
Saurabh - avatar
+ 3
Jay Matthews Thanks for info. We just keep trying 🤞🙄👍
21st Oct 2021, 10:16 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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
21st Oct 2021, 11:34 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Thanks for everyone help
1st Mar 2022, 8:05 AM
Saumya Jain
Saumya Jain - avatar