Created
April 22, 2020 17:41
-
-
Save basildoesstuff/c46c54c02f0a6f483e71dc11b4ede534 to your computer and use it in GitHub Desktop.
This file contains 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
#q3 | |
L = [10, 99, 98, 85, 45, 59, 65, 66, 76, 12, 35, 13, 100, 80, 95] | |
for i in L: | |
if i==100: | |
print("There is 100 at index "+ str(L.index(100))) | |
#q4 | |
def is_even(n): | |
if n%2==0: | |
return True | |
else: | |
return False | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import java.math.BigInteger;
import java.lang.Math;
class Grains {
}