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
Verifying my Blockstack ID is secured with the address 14rRyyWTeDBbTuqeKP9AGbevB5rdT6MLBF https://explorer.blockstack.org/address/14rRyyWTeDBbTuqeKP9AGbevB5rdT6MLBF |
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
def fib(n): | |
a = 0 | |
b = 0 | |
c = 1 | |
print (a,b) | |
for i in range(n-2): | |
print (c,end=',') | |
a = b | |
b = c |
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
print ([even for even in a if even % 2 == 0]) |
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
import datetime | |
name = input("Enter your name: ") | |
age = int(input("Enter your age: ")) | |
now = datetime.datetime.now() | |
this_year = now.year | |
year_100 = this_year+(100-age) |
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
def listEnds(some_list): | |
list_2 = [] | |
list_2.append(some_list[0]) | |
list_2.append(some_list[-1]) | |
print(list_2) | |
some_list = input() | |
listEnds(some_list) |