How to use locked method in localstack

Best Python code snippet using localstack_python

10.py

Source:10.py Github

copy

Full Screen

1test = {2 'name': 'Question 10',3 'points': 1,4 'suites': [5 {6 'cases': [7 {8 'code': r"""9 >>> bacon_strategy(0, 9, margin=8, num_rolls=5)10 011 """,12 'hidden': False,13 'locked': False14 },15 {16 'code': r"""17 >>> bacon_strategy(9, 0, margin=6, num_rolls=5)18 519 """,20 'hidden': False,21 'locked': False22 },23 {24 'code': r"""25 >>> bacon_strategy(50, 2, margin=9, num_rolls=5)26 027 """,28 'hidden': False,29 'locked': False30 },31 {32 'code': r"""33 >>> bacon_strategy(32, 0, margin=5, num_rolls=4)34 435 """,36 'hidden': False,37 'locked': False38 },39 {40 'code': r"""41 >>> bacon_strategy(20, 1, margin=1, num_rolls=4)42 043 """,44 'hidden': False,45 'locked': False46 },47 {48 'code': r"""49 >>> from tests.check_strategy import check_strategy50 >>> check_strategy(bacon_strategy)51 """,52 'hidden': False,53 'locked': False54 }55 ],56 'scored': True,57 'setup': r"""58 >>> from hog import *59 """,60 'teardown': '',61 'type': 'doctest'62 },63 {64 'cases': [65 {66 'code': r"""67 >>> bacon_strategy(44, 47, 0, 4)68 069 """,70 'hidden': False,71 'locked': False72 },73 {74 'code': r"""75 >>> bacon_strategy(37, 12, 8, 10)76 077 """,78 'hidden': False,79 'locked': False80 },81 {82 'code': r"""83 >>> bacon_strategy(40, 15, 13, 9)84 985 """,86 'hidden': False,87 'locked': False88 },89 {90 'code': r"""91 >>> bacon_strategy(24, 3, 8, 1)92 193 """,94 'hidden': False,95 'locked': False96 },97 {98 'code': r"""99 >>> bacon_strategy(46, 55, 5, 2)100 2101 """,102 'hidden': False,103 'locked': False104 },105 {106 'code': r"""107 >>> bacon_strategy(99, 78, 15, 7)108 7109 """,110 'hidden': False,111 'locked': False112 },113 {114 'code': r"""115 >>> bacon_strategy(10, 73, 3, 5)116 0117 """,118 'hidden': False,119 'locked': False120 },121 {122 'code': r"""123 >>> bacon_strategy(47, 68, 3, 4)124 0125 """,126 'hidden': False,127 'locked': False128 },129 {130 'code': r"""131 >>> bacon_strategy(67, 84, 17, 10)132 10133 """,134 'hidden': False,135 'locked': False136 },137 {138 'code': r"""139 >>> bacon_strategy(92, 54, 1, 7)140 0141 """,142 'hidden': False,143 'locked': False144 },145 {146 'code': r"""147 >>> bacon_strategy(9, 15, 0, 2)148 0149 """,150 'hidden': False,151 'locked': False152 },153 {154 'code': r"""155 >>> bacon_strategy(25, 63, 16, 2)156 2157 """,158 'hidden': False,159 'locked': False160 },161 {162 'code': r"""163 >>> bacon_strategy(75, 27, 6, 2)164 0165 """,166 'hidden': False,167 'locked': False168 },169 {170 'code': r"""171 >>> bacon_strategy(82, 48, 10, 1)172 1173 """,174 'hidden': False,175 'locked': False176 },177 {178 'code': r"""179 >>> bacon_strategy(88, 12, 7, 10)180 0181 """,182 'hidden': False,183 'locked': False184 },185 {186 'code': r"""187 >>> bacon_strategy(72, 12, 5, 8)188 0189 """,190 'hidden': False,191 'locked': False192 },193 {194 'code': r"""195 >>> bacon_strategy(41, 69, 1, 5)196 0197 """,198 'hidden': False,199 'locked': False200 },201 {202 'code': r"""203 >>> bacon_strategy(15, 6, 16, 7)204 7205 """,206 'hidden': False,207 'locked': False208 },209 {210 'code': r"""211 >>> bacon_strategy(42, 19, 5, 2)212 0213 """,214 'hidden': False,215 'locked': False216 },217 {218 'code': r"""219 >>> bacon_strategy(93, 98, 8, 4)220 0221 """,222 'hidden': False,223 'locked': False224 },225 {226 'code': r"""227 >>> bacon_strategy(99, 90, 15, 10)228 0229 """,230 'hidden': False,231 'locked': False232 },233 {234 'code': r"""235 >>> bacon_strategy(73, 79, 4, 1)236 0237 """,238 'hidden': False,239 'locked': False240 },241 {242 'code': r"""243 >>> bacon_strategy(4, 44, 0, 5)244 0245 """,246 'hidden': False,247 'locked': False248 },249 {250 'code': r"""251 >>> bacon_strategy(83, 40, 9, 7)252 7253 """,254 'hidden': False,255 'locked': False256 },257 {258 'code': r"""259 >>> bacon_strategy(34, 3, 0, 8)260 0261 """,262 'hidden': False,263 'locked': False264 },265 {266 'code': r"""267 >>> bacon_strategy(4, 62, 15, 7)268 7269 """,270 'hidden': False,271 'locked': False272 },273 {274 'code': r"""275 >>> bacon_strategy(53, 62, 6, 1)276 1277 """,278 'hidden': False,279 'locked': False280 },281 {282 'code': r"""283 >>> bacon_strategy(19, 56, 8, 9)284 0285 """,286 'hidden': False,287 'locked': False288 },289 {290 'code': r"""291 >>> bacon_strategy(1, 5, 0, 4)292 0293 """,294 'hidden': False,295 'locked': False296 },297 {298 'code': r"""299 >>> bacon_strategy(85, 34, 8, 1)300 1301 """,302 'hidden': False,303 'locked': False304 },305 {306 'code': r"""307 >>> bacon_strategy(37, 37, 13, 5)308 5309 """,310 'hidden': False,311 'locked': False312 },313 {314 'code': r"""315 >>> bacon_strategy(82, 87, 16, 3)316 3317 """,318 'hidden': False,319 'locked': False320 },321 {322 'code': r"""323 >>> bacon_strategy(87, 43, 5, 7)324 0325 """,326 'hidden': False,327 'locked': False328 },329 {330 'code': r"""331 >>> bacon_strategy(20, 7, 2, 3)332 0333 """,334 'hidden': False,335 'locked': False336 },337 {338 'code': r"""339 >>> bacon_strategy(33, 85, 4, 4)340 0341 """,342 'hidden': False,343 'locked': False344 },345 {346 'code': r"""347 >>> bacon_strategy(73, 15, 12, 8)348 8349 """,350 'hidden': False,351 'locked': False352 },353 {354 'code': r"""355 >>> bacon_strategy(5, 98, 8, 2)356 0357 """,358 'hidden': False,359 'locked': False360 },361 {362 'code': r"""363 >>> bacon_strategy(15, 76, 3, 4)364 4365 """,366 'hidden': False,367 'locked': False368 },369 {370 'code': r"""371 >>> bacon_strategy(33, 75, 19, 5)372 5373 """,374 'hidden': False,375 'locked': False376 },377 {378 'code': r"""379 >>> bacon_strategy(9, 41, 0, 5)380 0381 """,382 'hidden': False,383 'locked': False384 },385 {386 'code': r"""387 >>> bacon_strategy(70, 91, 7, 6)388 0389 """,390 'hidden': False,391 'locked': False392 },393 {394 'code': r"""395 >>> bacon_strategy(64, 35, 12, 3)396 3397 """,398 'hidden': False,399 'locked': False400 },401 {402 'code': r"""403 >>> bacon_strategy(51, 92, 14, 8)404 8405 """,406 'hidden': False,407 'locked': False408 },409 {410 'code': r"""411 >>> bacon_strategy(68, 64, 17, 6)412 6413 """,414 'hidden': False,415 'locked': False416 },417 {418 'code': r"""419 >>> bacon_strategy(20, 35, 17, 4)420 4421 """,422 'hidden': False,423 'locked': False424 },425 {426 'code': r"""427 >>> bacon_strategy(75, 30, 3, 1)428 0429 """,430 'hidden': False,431 'locked': False432 },433 {434 'code': r"""435 >>> bacon_strategy(61, 69, 8, 5)436 5437 """,438 'hidden': False,439 'locked': False440 },441 {442 'code': r"""443 >>> bacon_strategy(7, 6, 7, 9)444 0445 """,446 'hidden': False,447 'locked': False448 },449 {450 'code': r"""451 >>> bacon_strategy(0, 51, 17, 5)452 5453 """,454 'hidden': False,455 'locked': False456 },457 {458 'code': r"""459 >>> bacon_strategy(42, 45, 8, 6)460 0461 """,462 'hidden': False,463 'locked': False464 },465 {466 'code': r"""467 >>> bacon_strategy(48, 96, 11, 2)468 2469 """,470 'hidden': False,471 'locked': False472 },473 {474 'code': r"""475 >>> bacon_strategy(57, 96, 9, 6)476 6477 """,478 'hidden': False,479 'locked': False480 },481 {482 'code': r"""483 >>> bacon_strategy(28, 11, 13, 8)484 8485 """,486 'hidden': False,487 'locked': False488 },489 {490 'code': r"""491 >>> bacon_strategy(25, 29, 5, 7)492 7493 """,494 'hidden': False,495 'locked': False496 },497 {498 'code': r"""499 >>> bacon_strategy(69, 2, 15, 8)500 8501 """,502 'hidden': False,503 'locked': False504 },505 {506 'code': r"""507 >>> bacon_strategy(77, 26, 7, 9)508 9509 """,510 'hidden': False,511 'locked': False512 },513 {514 'code': r"""515 >>> bacon_strategy(85, 15, 0, 3)516 0517 """,518 'hidden': False,519 'locked': False520 },521 {522 'code': r"""523 >>> bacon_strategy(79, 86, 5, 7)524 0525 """,526 'hidden': False,527 'locked': False528 },529 {530 'code': r"""531 >>> bacon_strategy(35, 32, 14, 6)532 6533 """,534 'hidden': False,535 'locked': False536 },537 {538 'code': r"""539 >>> bacon_strategy(49, 44, 13, 8)540 8541 """,542 'hidden': False,543 'locked': False544 },545 {546 'code': r"""547 >>> bacon_strategy(77, 65, 6, 4)548 0549 """,550 'hidden': False,551 'locked': False552 },553 {554 'code': r"""555 >>> bacon_strategy(99, 18, 2, 1)556 0557 """,558 'hidden': False,559 'locked': False560 },561 {562 'code': r"""563 >>> bacon_strategy(18, 24, 17, 10)564 10565 """,566 'hidden': False,567 'locked': False568 },569 {570 'code': r"""571 >>> bacon_strategy(44, 11, 18, 1)572 1573 """,574 'hidden': False,575 'locked': False576 },577 {578 'code': r"""579 >>> bacon_strategy(68, 38, 17, 5)580 5581 """,582 'hidden': False,583 'locked': False584 },585 {586 'code': r"""587 >>> bacon_strategy(46, 63, 8, 6)588 6589 """,590 'hidden': False,591 'locked': False592 },593 {594 'code': r"""595 >>> bacon_strategy(20, 60, 19, 6)596 6597 """,598 'hidden': False,599 'locked': False600 },601 {602 'code': r"""603 >>> bacon_strategy(67, 53, 10, 6)604 6605 """,606 'hidden': False,607 'locked': False608 },609 {610 'code': r"""611 >>> bacon_strategy(63, 39, 4, 1)612 0613 """,614 'hidden': False,615 'locked': False616 },617 {618 'code': r"""619 >>> bacon_strategy(54, 75, 9, 8)620 8621 """,622 'hidden': False,623 'locked': False624 },625 {626 'code': r"""627 >>> bacon_strategy(78, 86, 18, 9)628 9629 """,630 'hidden': False,631 'locked': False632 },633 {634 'code': r"""635 >>> bacon_strategy(45, 11, 8, 9)636 9637 """,638 'hidden': False,639 'locked': False640 },641 {642 'code': r"""643 >>> bacon_strategy(88, 19, 14, 6)644 6645 """,646 'hidden': False,647 'locked': False648 },649 {650 'code': r"""651 >>> bacon_strategy(22, 18, 14, 1)652 1653 """,654 'hidden': False,655 'locked': False656 },657 {658 'code': r"""659 >>> bacon_strategy(30, 91, 9, 10)660 10661 """,662 'hidden': False,663 'locked': False664 },665 {666 'code': r"""667 >>> bacon_strategy(19, 81, 8, 1)668 1669 """,670 'hidden': False,671 'locked': False672 },673 {674 'code': r"""675 >>> bacon_strategy(33, 7, 0, 2)676 0677 """,678 'hidden': False,679 'locked': False680 },681 {682 'code': r"""683 >>> bacon_strategy(87, 95, 11, 6)684 6685 """,686 'hidden': False,687 'locked': False688 },689 {690 'code': r"""691 >>> bacon_strategy(69, 86, 8, 10)692 0693 """,694 'hidden': False,695 'locked': False696 },697 {698 'code': r"""699 >>> bacon_strategy(87, 61, 10, 4)700 4701 """,702 'hidden': False,703 'locked': False704 },705 {706 'code': r"""707 >>> bacon_strategy(47, 60, 6, 4)708 0709 """,710 'hidden': False,711 'locked': False712 },713 {714 'code': r"""715 >>> bacon_strategy(67, 65, 14, 4)716 4717 """,718 'hidden': False,719 'locked': False720 },721 {722 'code': r"""723 >>> bacon_strategy(3, 66, 3, 7)724 7725 """,726 'hidden': False,727 'locked': False728 },729 {730 'code': r"""731 >>> bacon_strategy(82, 23, 8, 8)732 8733 """,734 'hidden': False,735 'locked': False736 },737 {738 'code': r"""739 >>> bacon_strategy(42, 89, 14, 1)740 1741 """,742 'hidden': False,743 'locked': False744 },745 {746 'code': r"""747 >>> bacon_strategy(32, 13, 4, 4)748 0749 """,750 'hidden': False,751 'locked': False752 },753 {754 'code': r"""755 >>> bacon_strategy(20, 96, 12, 4)756 4757 """,758 'hidden': False,759 'locked': False760 },761 {762 'code': r"""763 >>> bacon_strategy(77, 59, 15, 7)764 7765 """,766 'hidden': False,767 'locked': False768 },769 {770 'code': r"""771 >>> bacon_strategy(88, 32, 15, 2)772 2773 """,774 'hidden': False,775 'locked': False776 },777 {778 'code': r"""779 >>> bacon_strategy(19, 30, 4, 7)780 0781 """,782 'hidden': False,783 'locked': False784 },785 {786 'code': r"""787 >>> bacon_strategy(91, 29, 18, 4)788 4789 """,790 'hidden': False,791 'locked': False792 },793 {794 'code': r"""795 >>> bacon_strategy(50, 46, 10, 3)796 3797 """,798 'hidden': False,799 'locked': False800 },801 {802 'code': r"""803 >>> bacon_strategy(42, 67, 18, 7)804 7805 """,806 'hidden': False,807 'locked': False808 },809 {810 'code': r"""811 >>> bacon_strategy(37, 91, 4, 9)812 0813 """,814 'hidden': False,815 'locked': False816 },817 {818 'code': r"""819 >>> bacon_strategy(59, 82, 0, 6)820 0821 """,822 'hidden': False,823 'locked': False824 },825 {826 'code': r"""827 >>> bacon_strategy(22, 41, 19, 7)828 7829 """,830 'hidden': False,831 'locked': False832 },833 {834 'code': r"""835 >>> bacon_strategy(84, 90, 6, 5)836 0837 """,838 'hidden': False,839 'locked': False840 },841 {842 'code': r"""843 >>> bacon_strategy(90, 35, 9, 4)844 0845 """,846 'hidden': False,847 'locked': False848 },849 {850 'code': r"""851 >>> bacon_strategy(90, 42, 1, 5)852 0853 """,854 'hidden': False,855 'locked': False856 },857 {858 'code': r"""859 >>> bacon_strategy(1, 35, 8, 10)860 0861 """,862 'hidden': False,863 'locked': False864 }865 ],866 'scored': True,867 'setup': r"""868 >>> from hog import *869 """,870 'teardown': '',871 'type': 'doctest'872 }873 ]...

Full Screen

Full Screen

11.py

Source:11.py Github

copy

Full Screen

1test = {2 'name': 'Question 11',3 'points': 2,4 'suites': [5 {6 'cases': [7 {8 'code': r"""9 >>> swap_strategy(1, 19, 8, 6)10 011 """,12 'hidden': False,13 'locked': False14 },15 {16 'code': r"""17 >>> swap_strategy(30, 54, 7, 6)18 619 """,20 'hidden': False,21 'locked': False22 },23 {24 'code': r"""25 >>> swap_strategy(1, 19, 100, 6)26 027 """,28 'hidden': False,29 'locked': False30 },31 {32 'code': r"""33 >>> swap_strategy(24, 1, 1, 6)34 635 """,36 'hidden': False,37 'locked': False38 },39 {40 'code': r"""41 >>> swap_strategy(13, 18, 10, 6)42 643 """,44 'hidden': False,45 'locked': False46 },47 {48 'code': r"""49 >>> swap_strategy(13, 18, 1, 6)50 051 """,52 'hidden': False,53 'locked': False54 },55 {56 'code': r"""57 >>> from tests.check_strategy import check_strategy58 >>> check_strategy(swap_strategy)59 """,60 'hidden': False,61 'locked': False62 }63 ],64 'scored': True,65 'setup': r"""66 >>> from hog import *67 """,68 'teardown': '',69 'type': 'doctest'70 },71 {72 'cases': [73 {74 'code': r"""75 >>> swap_strategy(9, 83, 18, 5)76 577 """,78 'hidden': False,79 'locked': False80 },81 {82 'code': r"""83 >>> swap_strategy(25, 50, 5, 3)84 085 """,86 'hidden': False,87 'locked': False88 },89 {90 'code': r"""91 >>> swap_strategy(15, 72, 11, 3)92 393 """,94 'hidden': False,95 'locked': False96 },97 {98 'code': r"""99 >>> swap_strategy(24, 3, 8, 1)100 1101 """,102 'hidden': False,103 'locked': False104 },105 {106 'code': r"""107 >>> swap_strategy(46, 55, 5, 2)108 2109 """,110 'hidden': False,111 'locked': False112 },113 {114 'code': r"""115 >>> swap_strategy(7, 76, 15, 2)116 0117 """,118 'hidden': False,119 'locked': False120 },121 {122 'code': r"""123 >>> swap_strategy(62, 25, 1, 10)124 0125 """,126 'hidden': False,127 'locked': False128 },129 {130 'code': r"""131 >>> swap_strategy(6, 19, 12, 6)132 0133 """,134 'hidden': False,135 'locked': False136 },137 {138 'code': r"""139 >>> swap_strategy(14, 93, 9, 4)140 0141 """,142 'hidden': False,143 'locked': False144 },145 {146 'code': r"""147 >>> swap_strategy(92, 54, 1, 7)148 0149 """,150 'hidden': False,151 'locked': False152 },153 {154 'code': r"""155 >>> swap_strategy(9, 15, 18, 1)156 0157 """,158 'hidden': False,159 'locked': False160 },161 {162 'code': r"""163 >>> swap_strategy(82, 24, 13, 1)164 1165 """,166 'hidden': False,167 'locked': False168 },169 {170 'code': r"""171 >>> swap_strategy(27, 6, 17, 3)172 3173 """,174 'hidden': False,175 'locked': False176 },177 {178 'code': r"""179 >>> swap_strategy(26, 66, 14, 7)180 7181 """,182 'hidden': False,183 'locked': False184 },185 {186 'code': r"""187 >>> swap_strategy(28, 10, 16, 9)188 9189 """,190 'hidden': False,191 'locked': False192 },193 {194 'code': r"""195 >>> swap_strategy(12, 5, 0, 8)196 0197 """,198 'hidden': False,199 'locked': False200 },201 {202 'code': r"""203 >>> swap_strategy(84, 30, 12, 10)204 10205 """,206 'hidden': False,207 'locked': False208 },209 {210 'code': r"""211 >>> swap_strategy(56, 8, 18, 10)212 10213 """,214 'hidden': False,215 'locked': False216 },217 {218 'code': r"""219 >>> swap_strategy(19, 69, 17, 3)220 3221 """,222 'hidden': False,223 'locked': False224 },225 {226 'code': r"""227 >>> swap_strategy(58, 63, 10, 5)228 5229 """,230 'hidden': False,231 'locked': False232 },233 {234 'code': r"""235 >>> swap_strategy(78, 42, 3, 3)236 3237 """,238 'hidden': False,239 'locked': False240 },241 {242 'code': r"""243 >>> swap_strategy(26, 44, 5, 2)244 0245 """,246 'hidden': False,247 'locked': False248 },249 {250 'code': r"""251 >>> swap_strategy(81, 38, 19, 4)252 4253 """,254 'hidden': False,255 'locked': False256 },257 {258 'code': r"""259 >>> swap_strategy(85, 27, 1, 9)260 9261 """,262 'hidden': False,263 'locked': False264 },265 {266 'code': r"""267 >>> swap_strategy(1, 79, 4, 4)268 0269 """,270 'hidden': False,271 'locked': False272 },273 {274 'code': r"""275 >>> swap_strategy(62, 90, 15, 7)276 0277 """,278 'hidden': False,279 'locked': False280 },281 {282 'code': r"""283 >>> swap_strategy(62, 6, 16, 2)284 2285 """,286 'hidden': False,287 'locked': False288 },289 {290 'code': r"""291 >>> swap_strategy(90, 76, 7, 3)292 3293 """,294 'hidden': False,295 'locked': False296 },297 {298 'code': r"""299 >>> swap_strategy(7, 12, 12, 2)300 2301 """,302 'hidden': False,303 'locked': False304 },305 {306 'code': r"""307 >>> swap_strategy(24, 85, 19, 2)308 0309 """,310 'hidden': False,311 'locked': False312 },313 {314 'code': r"""315 >>> swap_strategy(6, 62, 14, 1)316 0317 """,318 'hidden': False,319 'locked': False320 },321 {322 'code': r"""323 >>> swap_strategy(87, 16, 2, 8)324 0325 """,326 'hidden': False,327 'locked': False328 },329 {330 'code': r"""331 >>> swap_strategy(42, 82, 10, 5)332 0333 """,334 'hidden': False,335 'locked': False336 },337 {338 'code': r"""339 >>> swap_strategy(7, 88, 2, 3)340 3341 """,342 'hidden': False,343 'locked': False344 },345 {346 'code': r"""347 >>> swap_strategy(19, 93, 14, 7)348 0349 """,350 'hidden': False,351 'locked': False352 },353 {354 'code': r"""355 >>> swap_strategy(15, 55, 1, 1)356 0357 """,358 'hidden': False,359 'locked': False360 },361 {362 'code': r"""363 >>> swap_strategy(74, 43, 8, 9)364 9365 """,366 'hidden': False,367 'locked': False368 },369 {370 'code': r"""371 >>> swap_strategy(46, 12, 17, 9)372 9373 """,374 'hidden': False,375 'locked': False376 },377 {378 'code': r"""379 >>> swap_strategy(68, 55, 5, 4)380 4381 """,382 'hidden': False,383 'locked': False384 },385 {386 'code': r"""387 >>> swap_strategy(94, 77, 9, 5)388 5389 """,390 'hidden': False,391 'locked': False392 },393 {394 'code': r"""395 >>> swap_strategy(91, 7, 5, 9)396 9397 """,398 'hidden': False,399 'locked': False400 },401 {402 'code': r"""403 >>> swap_strategy(35, 12, 2, 1)404 0405 """,406 'hidden': False,407 'locked': False408 },409 {410 'code': r"""411 >>> swap_strategy(51, 92, 14, 8)412 8413 """,414 'hidden': False,415 'locked': False416 },417 {418 'code': r"""419 >>> swap_strategy(64, 49, 16, 4)420 4421 """,422 'hidden': False,423 'locked': False424 },425 {426 'code': r"""427 >>> swap_strategy(35, 45, 3, 1)428 0429 """,430 'hidden': False,431 'locked': False432 },433 {434 'code': r"""435 >>> swap_strategy(14, 53, 8, 8)436 0437 """,438 'hidden': False,439 'locked': False440 },441 {442 'code': r"""443 >>> swap_strategy(72, 32, 2, 3)444 3445 """,446 'hidden': False,447 'locked': False448 },449 {450 'code': r"""451 >>> swap_strategy(71, 45, 17, 8)452 8453 """,454 'hidden': False,455 'locked': False456 },457 {458 'code': r"""459 >>> swap_strategy(51, 81, 4, 1)460 1461 """,462 'hidden': False,463 'locked': False464 },465 {466 'code': r"""467 >>> swap_strategy(45, 40, 18, 6)468 6469 """,470 'hidden': False,471 'locked': False472 },473 {474 'code': r"""475 >>> swap_strategy(96, 11, 13, 2)476 2477 """,478 'hidden': False,479 'locked': False480 },481 {482 'code': r"""483 >>> swap_strategy(57, 96, 9, 6)484 6485 """,486 'hidden': False,487 'locked': False488 },489 {490 'code': r"""491 >>> swap_strategy(28, 11, 13, 8)492 8493 """,494 'hidden': False,495 'locked': False496 },497 {498 'code': r"""499 >>> swap_strategy(29, 37, 16, 9)500 9501 """,502 'hidden': False,503 'locked': False504 },505 {506 'code': r"""507 >>> swap_strategy(69, 2, 15, 8)508 8509 """,510 'hidden': False,511 'locked': False512 },513 {514 'code': r"""515 >>> swap_strategy(94, 19, 10, 10)516 10517 """,518 'hidden': False,519 'locked': False520 },521 {522 'code': r"""523 >>> swap_strategy(33, 89, 10, 6)524 0525 """,526 'hidden': False,527 'locked': False528 },529 {530 'code': r"""531 >>> swap_strategy(5, 78, 16, 7)532 0533 """,534 'hidden': False,535 'locked': False536 },537 {538 'code': r"""539 >>> swap_strategy(99, 67, 0, 4)540 4541 """,542 'hidden': False,543 'locked': False544 },545 {546 'code': r"""547 >>> swap_strategy(2, 56, 9, 9)548 0549 """,550 'hidden': False,551 'locked': False552 },553 {554 'code': r"""555 >>> swap_strategy(15, 57, 10, 6)556 0557 """,558 'hidden': False,559 'locked': False560 },561 {562 'code': r"""563 >>> swap_strategy(81, 38, 10, 1)564 1565 """,566 'hidden': False,567 'locked': False568 },569 {570 'code': r"""571 >>> swap_strategy(24, 81, 9, 4)572 4573 """,574 'hidden': False,575 'locked': False576 },577 {578 'code': r"""579 >>> swap_strategy(11, 87, 18, 1)580 1581 """,582 'hidden': False,583 'locked': False584 },585 {586 'code': r"""587 >>> swap_strategy(38, 54, 17, 5)588 5589 """,590 'hidden': False,591 'locked': False592 },593 {594 'code': r"""595 >>> swap_strategy(63, 40, 7, 9)596 9597 """,598 'hidden': False,599 'locked': False600 },601 {602 'code': r"""603 >>> swap_strategy(60, 51, 13, 6)604 6605 """,606 'hidden': False,607 'locked': False608 },609 {610 'code': r"""611 >>> swap_strategy(55, 56, 7, 3)612 3613 """,614 'hidden': False,615 'locked': False616 },617 {618 'code': r"""619 >>> swap_strategy(64, 10, 14, 4)620 4621 """,622 'hidden': False,623 'locked': False624 },625 {626 'code': r"""627 >>> swap_strategy(75, 73, 11, 8)628 8629 """,630 'hidden': False,631 'locked': False632 },633 {634 'code': r"""635 >>> swap_strategy(86, 24, 0, 5)636 0637 """,638 'hidden': False,639 'locked': False640 },641 {642 'code': r"""643 >>> swap_strategy(40, 81, 16, 6)644 0645 """,646 'hidden': False,647 'locked': False648 },649 {650 'code': r"""651 >>> swap_strategy(19, 46, 10, 6)652 6653 """,654 'hidden': False,655 'locked': False656 },657 {658 'code': r"""659 >>> swap_strategy(18, 46, 10, 1)660 1661 """,662 'hidden': False,663 'locked': False664 },665 {666 'code': r"""667 >>> swap_strategy(9, 28, 10, 6)668 6669 """,670 'hidden': False,671 'locked': False672 },673 {674 'code': r"""675 >>> swap_strategy(19, 81, 8, 1)676 1677 """,678 'hidden': False,679 'locked': False680 },681 {682 'code': r"""683 >>> swap_strategy(56, 58, 9, 9)684 9685 """,686 'hidden': False,687 'locked': False688 },689 {690 'code': r"""691 >>> swap_strategy(39, 44, 19, 1)692 0693 """,694 'hidden': False,695 'locked': False696 },697 {698 'code': r"""699 >>> swap_strategy(86, 32, 3, 7)700 7701 """,702 'hidden': False,703 'locked': False704 },705 {706 'code': r"""707 >>> swap_strategy(5, 27, 12, 10)708 0709 """,710 'hidden': False,711 'locked': False712 },713 {714 'code': r"""715 >>> swap_strategy(24, 1, 12, 2)716 2717 """,718 'hidden': False,719 'locked': False720 },721 {722 'code': r"""723 >>> swap_strategy(69, 8, 6, 5)724 5725 """,726 'hidden': False,727 'locked': False728 },729 {730 'code': r"""731 >>> swap_strategy(78, 42, 1, 2)732 2733 """,734 'hidden': False,735 'locked': False736 },737 {738 'code': r"""739 >>> swap_strategy(23, 39, 0, 1)740 0741 """,742 'hidden': False,743 'locked': False744 },745 {746 'code': r"""747 >>> swap_strategy(89, 56, 14, 1)748 1749 """,750 'hidden': False,751 'locked': False752 },753 {754 'code': r"""755 >>> swap_strategy(32, 13, 4, 4)756 0757 """,758 'hidden': False,759 'locked': False760 },761 {762 'code': r"""763 >>> swap_strategy(96, 44, 3, 9)764 9765 """,766 'hidden': False,767 'locked': False768 },769 {770 'code': r"""771 >>> swap_strategy(77, 59, 15, 7)772 7773 """,774 'hidden': False,775 'locked': False776 },777 {778 'code': r"""779 >>> swap_strategy(71, 90, 7, 8)780 0781 """,782 'hidden': False,783 'locked': False784 },785 {786 'code': r"""787 >>> swap_strategy(61, 64, 17, 7)788 7789 """,790 'hidden': False,791 'locked': False792 },793 {794 'code': r"""795 >>> swap_strategy(40, 87, 10, 3)796 0797 """,798 'hidden': False,799 'locked': False800 },801 {802 'code': r"""803 >>> swap_strategy(46, 82, 14, 5)804 5805 """,806 'hidden': False,807 'locked': False808 },809 {810 'code': r"""811 >>> swap_strategy(42, 67, 18, 7)812 7813 """,814 'hidden': False,815 'locked': False816 },817 {818 'code': r"""819 >>> swap_strategy(8, 71, 16, 9)820 0821 """,822 'hidden': False,823 'locked': False824 },825 {826 'code': r"""827 >>> swap_strategy(50, 22, 19, 7)828 7829 """,830 'hidden': False,831 'locked': False832 },833 {834 'code': r"""835 >>> swap_strategy(41, 19, 5, 3)836 0837 """,838 'hidden': False,839 'locked': False840 },841 {842 'code': r"""843 >>> swap_strategy(90, 38, 12, 5)844 5845 """,846 'hidden': False,847 'locked': False848 },849 {850 'code': r"""851 >>> swap_strategy(35, 51, 7, 4)852 4853 """,854 'hidden': False,855 'locked': False856 },857 {858 'code': r"""859 >>> swap_strategy(42, 52, 1, 5)860 0861 """,862 'hidden': False,863 'locked': False864 },865 {866 'code': r"""867 >>> swap_strategy(12, 96, 1, 3)868 0869 """,870 'hidden': False,871 'locked': False872 }873 ],874 'scored': True,875 'setup': r"""876 >>> from hog import *877 """,878 'teardown': '',879 'type': 'doctest'880 }881 ]...

Full Screen

Full Screen

04.py

Source:04.py Github

copy

Full Screen

1test = {2 'name': 'Question 4',3 'points': 2,4 'suites': [5 {6 'cases': [7 {8 'code': r"""9 >>> is_swap(2, 4)10 False11 """,12 'hidden': False,13 'locked': False14 },15 {16 'code': r"""17 >>> is_swap(11, 1)18 False19 """,20 'hidden': False,21 'locked': False22 },23 {24 'code': r"""25 >>> is_swap(1, 0)26 True27 """,28 'hidden': False,29 'locked': False30 },31 {32 'code': r"""33 >>> is_swap(23, 4)34 True35 """,36 'hidden': False,37 'locked': False38 },39 {40 'code': r"""41 >>> is_swap(10, 3)42 False43 """,44 'hidden': False,45 'locked': False46 },47 {48 'code': r"""49 >>> is_swap(92, 3)50 False51 """,52 'hidden': False,53 'locked': False54 },55 {56 'code': r"""57 >>> is_swap(559, 629)58 False59 """,60 'hidden': False,61 'locked': False62 },63 {64 'code': r"""65 >>> is_swap(398, 562)66 True67 """,68 'hidden': False,69 'locked': False70 },71 {72 'code': r"""73 >>> is_swap(527, 493)74 False75 """,76 'hidden': False,77 'locked': False78 },79 {80 'code': r"""81 >>> is_swap(664, 249)82 False83 """,84 'hidden': False,85 'locked': False86 },87 {88 'code': r"""89 >>> is_swap(174, 439)90 False91 """,92 'hidden': False,93 'locked': False94 },95 {96 'code': r"""97 >>> is_swap(743, 958)98 True99 """,100 'hidden': False,101 'locked': False102 },103 {104 'code': r"""105 >>> is_swap(713, 227)106 False107 """,108 'hidden': False,109 'locked': False110 },111 {112 'code': r"""113 >>> is_swap(535, 584)114 True115 """,116 'hidden': False,117 'locked': False118 },119 {120 'code': r"""121 >>> is_swap(133, 986)122 True123 """,124 'hidden': False,125 'locked': False126 },127 {128 'code': r"""129 >>> is_swap(348, 638)130 False131 """,132 'hidden': False,133 'locked': False134 },135 {136 'code': r"""137 >>> is_swap(574, 545)138 True139 """,140 'hidden': False,141 'locked': False142 },143 {144 'code': r"""145 >>> is_swap(91, 337)146 True147 """,148 'hidden': False,149 'locked': False150 },151 {152 'code': r"""153 >>> is_swap(459, 630)154 True155 """,156 'hidden': False,157 'locked': False158 },159 {160 'code': r"""161 >>> is_swap(176, 74)162 False163 """,164 'hidden': False,165 'locked': False166 },167 {168 'code': r"""169 >>> is_swap(761, 358)170 True171 """,172 'hidden': False,173 'locked': False174 },175 {176 'code': r"""177 >>> is_swap(757, 908)178 False179 """,180 'hidden': False,181 'locked': False182 },183 {184 'code': r"""185 >>> is_swap(480, 912)186 True187 """,188 'hidden': False,189 'locked': False190 },191 {192 'code': r"""193 >>> is_swap(241, 143)194 True195 """,196 'hidden': False,197 'locked': False198 },199 {200 'code': r"""201 >>> is_swap(275, 120)202 False203 """,204 'hidden': False,205 'locked': False206 },207 {208 'code': r"""209 >>> is_swap(330, 671)210 True211 """,212 'hidden': False,213 'locked': False214 },215 {216 'code': r"""217 >>> is_swap(485, 255)218 True219 """,220 'hidden': False,221 'locked': False222 },223 {224 'code': r"""225 >>> is_swap(772, 48)226 True227 """,228 'hidden': False,229 'locked': False230 },231 {232 'code': r"""233 >>> is_swap(904, 479)234 True235 """,236 'hidden': False,237 'locked': False238 },239 {240 'code': r"""241 >>> is_swap(237, 460)242 True243 """,244 'hidden': False,245 'locked': False246 },247 {248 'code': r"""249 >>> is_swap(899, 192)250 False251 """,252 'hidden': False,253 'locked': False254 },255 {256 'code': r"""257 >>> is_swap(318, 474)258 False259 """,260 'hidden': False,261 'locked': False262 },263 {264 'code': r"""265 >>> is_swap(318, 774)266 True267 """,268 'hidden': False,269 'locked': False270 },271 {272 'code': r"""273 >>> is_swap(752, 293)274 True275 """,276 'hidden': False,277 'locked': False278 },279 {280 'code': r"""281 >>> is_swap(284, 109)282 True283 """,284 'hidden': False,285 'locked': False286 },287 {288 'code': r"""289 >>> is_swap(862, 94)290 True291 """,292 'hidden': False,293 'locked': False294 },295 {296 'code': r"""297 >>> is_swap(763, 145)298 True299 """,300 'hidden': False,301 'locked': False302 },303 {304 'code': r"""305 >>> is_swap(599, 16)306 False307 """,308 'hidden': False,309 'locked': False310 },311 {312 'code': r"""313 >>> is_swap(751, 64)314 True315 """,316 'hidden': False,317 'locked': False318 },319 {320 'code': r"""321 >>> is_swap(578, 658)322 False323 """,324 'hidden': False,325 'locked': False326 },327 {328 'code': r"""329 >>> is_swap(547, 453)330 True331 """,332 'hidden': False,333 'locked': False334 },335 {336 'code': r"""337 >>> is_swap(448, 249)338 True339 """,340 'hidden': False,341 'locked': False342 },343 {344 'code': r"""345 >>> is_swap(293, 439)346 True347 """,348 'hidden': False,349 'locked': False350 },351 {352 'code': r"""353 >>> is_swap(363, 844)354 True355 """,356 'hidden': False,357 'locked': False358 },359 {360 'code': r"""361 >>> is_swap(943, 929)362 True363 """,364 'hidden': False,365 'locked': False366 },367 {368 'code': r"""369 >>> is_swap(919, 557)370 True371 """,372 'hidden': False,373 'locked': False374 },375 {376 'code': r"""377 >>> is_swap(219, 7)378 False379 """,380 'hidden': False,381 'locked': False382 },383 {384 'code': r"""385 >>> is_swap(931, 908)386 False387 """,388 'hidden': False,389 'locked': False390 },391 {392 'code': r"""393 >>> is_swap(270, 106)394 False395 """,396 'hidden': False,397 'locked': False398 },399 {400 'code': r"""401 >>> is_swap(320, 255)402 False403 """,404 'hidden': False,405 'locked': False406 },407 {408 'code': r"""409 >>> is_swap(173, 571)410 False411 """,412 'hidden': False,413 'locked': False414 },415 {416 'code': r"""417 >>> is_swap(892, 544)418 True419 """,420 'hidden': False,421 'locked': False422 },423 {424 'code': r"""425 >>> is_swap(316, 411)426 True427 """,428 'hidden': False,429 'locked': False430 },431 {432 'code': r"""433 >>> is_swap(584, 681)434 True435 """,436 'hidden': False,437 'locked': False438 },439 {440 'code': r"""441 >>> is_swap(563, 337)442 False443 """,444 'hidden': False,445 'locked': False446 },447 {448 'code': r"""449 >>> is_swap(685, 424)450 False451 """,452 'hidden': False,453 'locked': False454 },455 {456 'code': r"""457 >>> is_swap(480, 907)458 False459 """,460 'hidden': False,461 'locked': False462 },463 {464 'code': r"""465 >>> is_swap(57, 485)466 False467 """,468 'hidden': False,469 'locked': False470 },471 {472 'code': r"""473 >>> is_swap(483, 865)474 True475 """,476 'hidden': False,477 'locked': False478 },479 {480 'code': r"""481 >>> is_swap(278, 234)482 True483 """,484 'hidden': False,485 'locked': False486 },487 {488 'code': r"""489 >>> is_swap(281, 279)490 True491 """,492 'hidden': False,493 'locked': False494 },495 {496 'code': r"""497 >>> is_swap(666, 295)498 True499 """,500 'hidden': False,501 'locked': False502 },503 {504 'code': r"""505 >>> is_swap(706, 254)506 True507 """,508 'hidden': False,509 'locked': False510 },511 {512 'code': r"""513 >>> is_swap(696, 40)514 True515 """,516 'hidden': False,517 'locked': False518 },519 {520 'code': r"""521 >>> is_swap(730, 706)522 True523 """,524 'hidden': False,525 'locked': False526 },527 {528 'code': r"""529 >>> is_swap(66, 630)530 True531 """,532 'hidden': False,533 'locked': False534 },535 {536 'code': r"""537 >>> is_swap(98, 296)538 True539 """,540 'hidden': False,541 'locked': False542 },543 {544 'code': r"""545 >>> is_swap(577, 119)546 True547 """,548 'hidden': False,549 'locked': False550 },551 {552 'code': r"""553 >>> is_swap(24, 593)554 False555 """,556 'hidden': False,557 'locked': False558 },559 {560 'code': r"""561 >>> is_swap(116, 139)562 False563 """,564 'hidden': False,565 'locked': False566 },567 {568 'code': r"""569 >>> is_swap(998, 119)570 False571 """,572 'hidden': False,573 'locked': False574 },575 {576 'code': r"""577 >>> is_swap(296, 725)578 False579 """,580 'hidden': False,581 'locked': False582 },583 {584 'code': r"""585 >>> is_swap(828, 631)586 False587 """,588 'hidden': False,589 'locked': False590 },591 {592 'code': r"""593 >>> is_swap(279, 360)594 True595 """,596 'hidden': False,597 'locked': False598 },599 {600 'code': r"""601 >>> is_swap(236, 240)602 True603 """,604 'hidden': False,605 'locked': False606 },607 {608 'code': r"""609 >>> is_swap(439, 404)610 False611 """,612 'hidden': False,613 'locked': False614 },615 {616 'code': r"""617 >>> is_swap(214, 114)618 False619 """,620 'hidden': False,621 'locked': False622 },623 {624 'code': r"""625 >>> is_swap(941, 11)626 True627 """,628 'hidden': False,629 'locked': False630 },631 {632 'code': r"""633 >>> is_swap(787, 46)634 False635 """,636 'hidden': False,637 'locked': False638 },639 {640 'code': r"""641 >>> is_swap(394, 784)642 False643 """,644 'hidden': False,645 'locked': False646 },647 {648 'code': r"""649 >>> is_swap(201, 830)650 False651 """,652 'hidden': False,653 'locked': False654 },655 {656 'code': r"""657 >>> is_swap(368, 19)658 False659 """,660 'hidden': False,661 'locked': False662 },663 {664 'code': r"""665 >>> is_swap(610, 509)666 True667 """,668 'hidden': False,669 'locked': False670 },671 {672 'code': r"""673 >>> is_swap(441, 167)674 True675 """,676 'hidden': False,677 'locked': False678 },679 {680 'code': r"""681 >>> is_swap(310, 696)682 True683 """,684 'hidden': False,685 'locked': False686 },687 {688 'code': r"""689 >>> is_swap(663, 465)690 True691 """,692 'hidden': False,693 'locked': False694 },695 {696 'code': r"""697 >>> is_swap(259, 222)698 True699 """,700 'hidden': False,701 'locked': False702 },703 {704 'code': r"""705 >>> is_swap(705, 824)706 True707 """,708 'hidden': False,709 'locked': False710 },711 {712 'code': r"""713 >>> is_swap(499, 281)714 True715 """,716 'hidden': False,717 'locked': False718 },719 {720 'code': r"""721 >>> is_swap(535, 807)722 False723 """,724 'hidden': False,725 'locked': False726 },727 {728 'code': r"""729 >>> is_swap(753, 857)730 False731 """,732 'hidden': False,733 'locked': False734 },735 {736 'code': r"""737 >>> is_swap(160, 909)738 False739 """,740 'hidden': False,741 'locked': False742 },743 {744 'code': r"""745 >>> is_swap(864, 428)746 False747 """,748 'hidden': False,749 'locked': False750 },751 {752 'code': r"""753 >>> is_swap(333, 699)754 False755 """,756 'hidden': False,757 'locked': False758 },759 {760 'code': r"""761 >>> is_swap(288, 975)762 False763 """,764 'hidden': False,765 'locked': False766 },767 {768 'code': r"""769 >>> is_swap(552, 453)770 True771 """,772 'hidden': False,773 'locked': False774 },775 {776 'code': r"""777 >>> is_swap(669, 626)778 True779 """,780 'hidden': False,781 'locked': False782 },783 {784 'code': r"""785 >>> is_swap(686, 874)786 False787 """,788 'hidden': False,789 'locked': False790 },791 {792 'code': r"""793 >>> is_swap(42, 835)794 False795 """,796 'hidden': False,797 'locked': False798 },799 {800 'code': r"""801 >>> is_swap(521, 823)802 True803 """,804 'hidden': False,805 'locked': False806 },807 {808 'code': r"""809 >>> is_swap(984, 808)810 True811 """,812 'hidden': False,813 'locked': False814 },815 {816 'code': r"""817 >>> is_swap(118, 958)818 False819 """,820 'hidden': False,821 'locked': False822 },823 {824 'code': r"""825 >>> is_swap(986, 422)826 False827 """,828 'hidden': False,829 'locked': False830 },831 {832 'code': r"""833 >>> is_swap(691, 949)834 False835 """,836 'hidden': False,837 'locked': False838 },839 {840 'code': r"""841 >>> is_swap(554, 180)842 False843 """,844 'hidden': False,845 'locked': False846 },847 {848 'code': r"""849 >>> is_swap(505, 59)850 True851 """,852 'hidden': False,853 'locked': False854 }855 ],856 'scored': True,857 'setup': r"""858 >>> from hog import *859 """,860 'teardown': '',861 'type': 'doctest'862 }863 ]...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful