CSClubIIITDM-org / bughunt-2024

Repo for BugHunt vashisht2024
0 stars 35 forks source link

[rmk] python 2 #105

Open Dhulasiraman opened 6 months ago

Dhulasiraman commented 6 months ago

b'p\xe7\x9eu{\x8f\r\xde<O\x92\xa4\x0f\xd5\x058\xb777\xa9\x87dU\x125s\xc4\x98~\x91\x14\x11\xa5s\xba\x1dX\x93B.\xad|\xd1e\xba\xd9E\x95\xe4\t\x08\x8a6\x9fg\xadK2&\xafC.\xbe\x8a\x10\x08m\xf2ovl\xf8\x1b\xd5\xfc\xa1IM\xc28\xf1\x00\xd7[\xe8\x0erGy\xca\x9c\xcf\xe9\xc2\xa2\xd1M\xcc&LAU\x08\xcf~a\xd8\xb2H\xa6\xfeZ\xdf, \xd4.\xfb\xa7\x0fb*A\xac\xb9\xc9(T'

b'gAAAAABl9SO4A7YzLX7P-Mq4WJjVNQGLW-e7gFpQkT7w4ki-La-HkEEpfi205GAl8KgqWVw-cu4pHuQZyTe8RQi8Y1c-iRFRBIR-_B86aaViUhk9CFLe7KVrrIjvrKk7tpmqY8p_wpyooD5lSD1IwbgVfP2hqJueOBDExfwGGgp7J2Cuhk0uyDA4O30KSggQCDK62nsW1EssIqVG2632jGqVBne2Y4_aPd9JOM3_z_LEZK9iq3NNxHvOm-8817TEftMHHJ1z-NRp4bsKs7BsNQnyW7hc8rHnImzrX6KhK-p5TNz3yuWY4H088Si5I1oCRCEI8onkL530Y1nj0j-1VC4cioaYudKaJiOmAJJU5umwCAxpFIYXG5EXtvxe7H75BeIK74etKjglobXmNDdugvZzc5R1KsXVpXtWRk_EoL98J0sqYfi0NbU-3JodjcO6vwQyqnLgLELxYaF9cJMEkPc7aG3iWRZMhvM6REMzhZKkGqsHSZc6BS6mgQo7PGjHvFn6FSA_wpl1bREY0fy2E7Z_81oPCc5B-wzpE289fL4jflXk1qmr1OuWErSNQYzr5KQg_2OFlury3JvV6z0bJfSwT2tXFaDuL4u6je5DyDrSsdlvuZA2by7uV1VV3mIXpr8gTIWSYAUpN2_lgfpMPViCv0swQ4Op0yR2n2Ncbf0XRNrm5oifycfOz7osV3ozZs9NG-bu84G1'

bughunt-bot[bot] commented 6 months ago

Team Name: rmk File Name: python 2 Line Number: [4] Bug Description: nil Solution:
To avoid this issue with mutable default arguments, you can use a sentinel value like None as the default value and then check for this sentinel within the function body to create a new list (or another mutable object) if necessary. This pattern ensures that you get a fresh list every time you call the function without providing a specific list as an argument:

bughunt-bot[bot] commented 6 months ago

Bug Hunt Evaluation: Answer: ((4,),) Correctness: 1/1 Points: 100/100