This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| green apple | |
| yellow flower | |
| red mitten | |
| happy days | |
| white river |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List = [0,0,0,0,0,0,0,0,0] | |
| full_list = [] | |
| for i in range(0, len(List)): | |
| List[i] = 1 | |
| full_list.append(List[:]) | |
| List[i] = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def return_prime(num): | |
| prime = "is prime." | |
| not_prime = "is not prime." | |
| divisors = 0 | |
| if num > 1: | |
| for i in range(2,num): | |
| if (num % i) == 0: | |
| divisors = divisors + 1 |
OlderNewer