Does ** operator in python have any limitations as the code below isn't printing anything at all | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Does ** operator in python have any limitations as the code below isn't printing anything at all

x=(2296922+2297922+2298922)%1000000007 n=(2295922**x)%1000000007 print(n)

5th Jul 2021, 5:20 AM
Sk. Ahmed Razha Khan
Sk. Ahmed Razha Khan - avatar
2 ответов
+ 1
Its memory problem actually your x value goes into million and you try to power it to million .it will make a huge time & memory consuming process
5th Jul 2021, 5:56 AM
Yash Wable 🇮🇳
Yash Wable 🇮🇳 - avatar
0
Sk. Ahmed Razha Khan Python can't handle this big a calculation. I can't think of a situation in which such a big calculation will be necessary.
5th Jul 2021, 5:45 AM
Calvin Thomas
Calvin Thomas - avatar