Učitavanje zadatka…
Before uploading files, it is useful to check whether they fit into the available storage quota. Given file sizes sizes in bytes and a byte limit quota, return True if the total size of all files does not exceed the quota. If there are no files, their total size is 0.
[100, 200, 300], 1000True[500, 600], 1000False[], 0Truedef fits_quota(sizes, quota):
Prijavi se da vidiš povijest predaja
PrijavaPrijavi se da koristiš AI mentora
Prijava[100,200,300], 1000True[500,600], 1000False[], 0True[1000], 1000True[1,1,1], 2False[100,200,300], 0False