<snapdata remixID="9183293"><project name="U5L1 Page 2&amp;3-Algorithms" app="Snap! 5.4, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAACeklEQVR4Xu3XsWnDUABF0W/tYk3gRVxrCs8ll55He7iSIZCQJglpfEEctRI8dP8BodO+7/twKRAVOAEYlTf7UQBAENICAKb5jQPIQFoAwDS/cQAZSAsAmOY3DiADaQEA0/zGAWQgLQBgmt84gAykBQBM8xsHkIG0AIBpfuMAMpAWADDNbxxABtICAKb5jQPIQFoAwDS/cQAZSAsAmOY3DiADaQEA0/zGAWQgLQBgmt84gAykBQBM8xsHkIG0AIBpfuMAMpAWADDNbxxABtICAKb5jQPIQFoAwDS/cQAZSAsAmOY3DiADaQEA0/zGAWQgLQBgmt84gAykBQBM8xsHkIG0AIBpfuMAMpAWADDNbxxABtICAKb5jQPIQFoAwDS/cQAZSAsAmOY3DiADaQEAf8h/uVzG7XYby7KkB3T0cQB/OeHr9fp1d9u2cb/fx/l8PrqJt74fgH/k/o7w89Fpmsbz+RyPx+Oth3XEMQABTF0D+I9P8LquY57n9MCONg6gn5DUNIBpfuMAMpAWADDNbxxABtICAKb5jQPIQFoAwDS/cQAZSAsAmOY3DiADaQEA0/zGAWQgLQBgmt84gAykBQBM8xsHkIG0AIBpfuMAMpAWADDNbxxABtICAKb5jQPIQFoAwDS/cQAZSAsAmOY3DiADaQEA0/zGAWQgLQBgmt84gAykBQBM8xsHkIG0AIBpfuMAMpAWADDNbxxABtICAKb5jQPIQFoAwDS/cQAZSAsAmOY3DiADaQEA0/zGAWQgLQBgmt84gAykBQBM8xsHkIG0AIBpfuMAMpAWADDNbxxABtICAKb5jQPIQFoAwDS/cQAZSAsAmOY3/gLXCfyohseIjQAAAABJRU5ErkJggg==</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="0" y="0" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="80,80,80,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="18" y="127"><custom-block s="Duplicates in %l"><block s="reportNewList"><list><l>20</l><l>12</l><l>3</l><l>100</l><l>50</l></list></block></custom-block></script><script x="17" y="176"><custom-block s="Remove Duplicates from %l"><block s="reportNewList"><list><l>20</l><l>12</l><l>3</l><l>100</l><l>50</l><l>50</l></list></block></custom-block></script><script x="61.513672875" y="350.000004"><custom-block s="Are the number of %l distinct"><block s="reportNewList"><list><l>20</l><l>12</l><l>3</l><l>100</l><l>50</l><l>50</l></list></block></custom-block></script><script x="574" y="364"><custom-block s="time function %repRing"><block s="reifyReporter"><autolambda><custom-block s="Are the number of %l distinct"><block s="reportNewList"><list><l>20</l><l>13</l><l>3</l><l>100</l><l>50</l><l>12</l><l>500</l><l>190</l><l>560</l><l>2</l><l>57</l><l>868</l><l>1000</l><l>501</l><l>4</l><l>9</l><l>0</l><l>5000</l><l>30</l><l>200</l></list></block></custom-block></autolambda><list></list></block></custom-block></script><script x="806.1005869375" y="640.000002"><block s="reportNewList"><list><l>20</l><l>12</l><l>3</l><l>100</l><l>50</l><l>12</l></list></block></script><script x="416.000001" y="610.8333373333332"><custom-block s="Position of number %n in sorted list %l"><l>970</l><l/></custom-block></script><script x="555" y="292"><custom-block s="time function %repRing"><block s="reifyReporter"><autolambda><custom-block s="Position of number %n in unsorted list %l"><l>9000</l><block s="reportNumbers"><l>1</l><l>10000</l></block></custom-block></autolambda><list></list></block></custom-block></script><script x="470" y="184"><custom-block s="time function %repRing"><block s="reifyReporter"><autolambda><custom-block s="Position of number %n in sorted list %l"><l>2</l><block s="reportNewList"><list><l>20</l><l>12</l><l>3</l><l>100</l><l>50</l><l>12</l><l>500</l><l>190</l><l>560</l><l>2</l><l>57</l><l>868</l><l>1000</l><l>500</l><l>4</l><l>9</l><l>0</l></list></block></custom-block></autolambda><list></list></block></custom-block></script><script x="707.8525410624999" y="109.8333393333333"><block s="reportNumbers"><l>1</l><l>1000</l></block></script></scripts></sprite></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="Position of number %&apos;number&apos; in unsorted list %&apos;List&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%l"></input></inputs><script><block s="doFor"><l>Position</l><l>1</l><block s="reportListLength"><block var="List"/></block><script><block s="doIf"><block s="reportEquals"><block s="reportListItem"><block var="Position"/><block var="List"/></block><block var="number"/></block><script><block s="doReport"><block var="Position"/></block></script></block></script><comment w="90" collapsed="false">The code will examine the numbers from one to how many numbers there are in the list. If the postition of the list is equal to the number to user inputted, it will then report the position number of the number the user requested to see. If the number is not in the list, it will report &quot;that number is not in the list.&quot;</comment></block><block s="doReport"><l>That number is not in the list</l></block></script></block-definition><block-definition s="Awful list" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportNewList"><list><l>1</l><l>7</l><l>8</l><l>9</l><l>11</l><l>12</l><l>21</l><l>22</l><l>23</l><l>24</l><l>73</l><l>73</l><l>96</l><l>99</l></list></block></block></script></block-definition><block-definition s="Position of number %&apos;Number&apos; in sorted list %&apos;list&apos;" type="reporter" category="lists"><comment x="0" y="0" w="117" collapsed="false">If the list contains the number the user is looking for, it will then start the following code. </comment><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%l"></input></inputs><script><block s="doIfElse"><block s="reportListContainsItem"><block var="list"/><block var="Number"/></block><script><block s="doDeclareVariables"><list><l>Item Number</l></list><comment w="139" collapsed="false">The script variable is used to report the item number that the user is looking for. If the average number of the list is greater than the number the user is looking for,it will then make a new list starting from 1 to the new highest number of the list. it will then change the item number by 1 until the code gets the number the user is looking for.</comment></block><block s="doIf"><block s="reportEquals"><block s="reportGreaterThan"><custom-block s="Average of %l"><block var="list"/></custom-block><block var="Number"/></block><block s="reportBoolean"><l><bool>true</bool></l></block></block><script><block s="doSetVar"><l>Item Number</l><l>0</l></block><block s="doForEach"><l>item</l><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportLessThan"><l></l><custom-block s="Average of %l"><block var="list"/></custom-block></block></autolambda><list></list></block><block var="list"/></block><script><block s="doChangeVar"><l>Item Number</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block var="item"/><block var="Number"/></block><script><block s="doReport"><block var="Item Number"/></block></script></block></script></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportLessThan"><custom-block s="Average of %l"><block var="list"/></custom-block><block var="Number"/></block><block s="reportBoolean"><l><bool>true</bool></l></block><comment w="134" collapsed="false">If the average of the list is less than the number is the user is looking for, it will then make a new list and  It will change the item number by one until the item number is equal to the number the user is looking for, which will then report the item number. </comment></block><script><block s="doSetVar"><l>Item Number</l><l>0</l></block><block s="doForEach"><l>item</l><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportGreaterThan"><l></l><custom-block s="Average of %l"><block var="list"/></custom-block></block></autolambda><list></list></block><block var="list"/></block><script><block s="doChangeVar"><l>Item Number</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block var="item"/><block var="Number"/></block><script><block s="doReport"><block s="reportSum"><block var="Item Number"/><block s="reportListLength"><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportLessThan"><l></l><custom-block s="Average of %l"><block var="list"/></custom-block></block></autolambda><list></list></block><block var="list"/></block></block></block></block></script></block></script></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportEquals"><custom-block s="Average of %l"><block var="list"/></custom-block><block var="Number"/></block><block s="reportBoolean"><l><bool>true</bool></l></block><comment w="90" collapsed="false">If the average number of the list is equal to the number, it will then  report the item number.</comment></block><script><block s="doSetVar"><l>Item Number</l><l>0</l></block><block s="doForEach"><l>item</l><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportGreaterThan"><l></l><custom-block s="Average of %l"><block var="list"/></custom-block></block></autolambda><list></list></block><block var="list"/></block><script><block s="doChangeVar"><l>Item Number</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block var="item"/><block var="Number"/></block><script><block s="doReport"><block var="Item Number"/></block></script></block></script></block></script></block></script><script><block s="doReport"><l>0</l><comment w="90" collapsed="false">The report 0 will only happen if the number the user is looking for is not in the list.</comment></block></script></block></script></block-definition><block-definition s="Average of %&apos;List&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doReport"><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block s="reportCombine"><block var="List"/><block s="reifyReporter"><autolambda><block s="reportSum"><l></l><l></l></block></autolambda><list></list></block></block><block s="reportListLength"><block var="List"/></block></block></block></block></script></block-definition><block-definition s="Are the number of %&apos;list&apos; distinct" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>T/F</l><l>New List</l></list><comment w="141" collapsed="false">The script variable is used to determine if it is distinct and to make a new list.</comment></block><block s="doSetVar"><l>New List</l><block var="list"/></block><block s="doSetVar"><l>T/F</l><block s="reportNewList"><list></list></block></block><block s="doRepeat"><block s="reportListLength"><block var="list"/><comment w="90" collapsed="false">The code here will repeat X amount of times depending on how many items are in the list. If all the numbers but the first numbers contain the same number, it will add 1 to T/F.</comment></block><script><block s="doIfElse"><block s="reportListContainsItem"><block s="reportCDR"><block var="New List"/></block><block s="reportListItem"><l>1</l><block var="New List"/></block></block><script><block s="doAddToList"><l>1</l><block var="T/F"/></block></script><script><block s="doAddToList"><l>0</l><block var="T/F"/></block></script></block><block s="doSetVar"><l>New List</l><block s="reportCDR"><block var="New List"/></block></block></script></block><block s="doIfElse"><block s="reportListContainsItem"><block var="T/F"/><l>1</l><comment w="90" collapsed="false">If T/F contains 1, then the numbers ae not distinct. If it doesn&apos;t contain 1, it is distinct.</comment></block><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></block-definition><block-definition s="Duplicates in %&apos;List&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doIfElse"><block s="reportEquals"><custom-block s="Are the number of %l distinct"><block var="List"/></custom-block><block s="reportBoolean"><l><bool>false</bool></l></block></block><script><block s="doDeclareVariables"><list><l>Duplicates</l><l>New List</l></list><comment w="120" collapsed="false">The script variables will contain the duplicates and have a new list.</comment></block><block s="doSetVar"><l>Duplicates</l><block s="reportNewList"><list></list></block></block><block s="doSetVar"><l>New List</l><block var="List"/></block><block s="doForEach"><l>item</l><block var="New List"><comment w="116" collapsed="false">If the first item of the list contains any numbers in the rest of the list, it will add the item to the duplicate and repeat it for each item and will make a new list to repeat for every other item.</comment></block><script><block s="doIf"><block s="reportListContainsItem"><block s="reportCDR"><block var="New List"/></block><block s="reportListItem"><l>1</l><block var="New List"/></block></block><script><block s="doAddToList"><block var="item"/><block var="Duplicates"/></block></script></block><block s="doSetVar"><l>New List</l><block s="reportCDR"><block var="New List"/></block></block></script></block><block s="doReport"><block var="Duplicates"><comment w="167" collapsed="false">This will report the duplicates</comment></block></block></script><script><block s="doReport"><l>No Duplicates</l><comment w="128" collapsed="false">If there is no duplicates, it will report no duplicates.</comment></block></script></block></script></block-definition><block-definition s="Remove Duplicates from %&apos;List&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>New List</l></list></block><block s="doSetVar"><l>New List</l><block var="List"/></block><block s="doRepeat"><block s="reportListLength"><custom-block s="Duplicates in %l"><block var="List"/><comment w="90" collapsed="false">This will repeat x amount of times depending on how many duplicates there are. This code will delete each duplicate in the list and will make a new list where there isn&apos;t a duplicate.</comment></custom-block></block><script><block s="doDeleteFromList"><custom-block s="Position of number %n in unsorted list %l"><block s="reportListItem"><l>1</l><custom-block s="Duplicates in %l"><block var="List"/></custom-block></block><block var="List"/></custom-block><block var="New List"/></block></script></block><block s="doReport"><block var="New List"/></block></script></block-definition><block-definition s="time function %&apos;function&apos;" type="reporter" category="other"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input></inputs><script><block s="doDeclareVariables"><list><l>start time</l></list></block><block s="doSetVar"><l>start time</l><block s="reportDate"><l><option>time in milliseconds</option></l></block></block><custom-block s="ignore %s"><block s="evaluate"><block var="function"/><list></list></block></custom-block><block s="doReport"><block s="reportDifference"><block s="reportDate"><l><option>time in milliseconds</option></l></block><block var="start time"/></block></block></script></block-definition><block-definition s="ignore %&apos;result&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs></block-definition></blocks><variables></variables></project><media name="U5L1 Page 2&3-Algorithms" app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>