[SOLVED] Is that possible to calculate the integer square root of a number in python?? for eg. √32 = 4√2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[SOLVED] Is that possible to calculate the integer square root of a number in python?? for eg. √32 = 4√2

For eg. The Square root of 32 must be displayed as 4√2 Plz help me

10th Feb 2020, 6:04 PM
Electrons Sagar
Electrons Sagar - avatar
6 Answers
+ 2
Due to your codes up to now I agree But ...don't have root on my keyboard..some little changes remain https://code.sololearn.com/cLRcPKFonGln/?ref=app
10th Feb 2020, 6:43 PM
Oma Falk
Oma Falk - avatar
+ 5
Electrons Sagar List2 = list(set(list1)) For f in list2 While more than 1 of f in list2 Delete 2 times f from l1 Add f to l3 ....
10th Feb 2020, 6:27 PM
Oma Falk
Oma Falk - avatar
+ 2
First idea: Factorize and if two factors occur two times take one of them before root Eg 32= 2*2*2*2*2 = (2*2)*(2*2)*2 Root(2*2)*(2*2)=4 4*root(2)
10th Feb 2020, 6:14 PM
Oma Falk
Oma Falk - avatar
+ 2
56 = 2*7*2*×2=2*2 *7*2 2*root(14)
10th Feb 2020, 6:17 PM
Oma Falk
Oma Falk - avatar
+ 2
Thanks so much my bro❤️❤️❤️👍⚡⚡⚡
11th Feb 2020, 6:03 AM
Electrons Sagar
Electrons Sagar - avatar
+ 1
I understood that but how can I work it out from the list of factors For eg. list1=[2,3,2,2,5,5]
10th Feb 2020, 6:22 PM
Electrons Sagar
Electrons Sagar - avatar