djdj - HTMLify profile

djdj's Profile Picture

djdj

471 Files

103469 Views

Latest files of /djdj/me/problems/hackerrank

python_print.py djdj/me/problems/hackerrank/python_print.py
340 Views
0 Comments
if __name__ == '__main__':
n = int(input())

for i in range(1,n+1):
print(i,end="")

write_a_function.py djdj/me/problems/hackerrank/write_a_function.py
305 Views
0 Comments
def is_leap(year):
leap = False
return leap

year = int(input())
print(is_leap(year))

leap_year.py djdj/me/problems/hackerrank/leap_year.py
311 Views
0 Comments
def is_leap(year):
if year%100==0:
if year%400==0:
return True
else:
return False
else:
if year%4==0:
python_if-else.py djdj/me/problems/hackerrank/python_if-else.py
325 Views
0 Comments
if n % 2 != 0: # odd
print("Weird")
if n % 2 == 0: # even
if 2 < n < 5:
print("Not Weird")
if 6 < n <= 20:
print("Weird")
if n > 20:
arithmetic_operation.py djdj/me/problems/hackerrank/arithmetic_operation.py
299 Views
0 Comments
a = int(input())
b = int(input())
print(a+b)
print(a-b)
print(a*b)

what's_your_name.py djdj/me/problems/hackerrank/what's_your_name.py
315 Views
0 Comments
def print_full_name(first_name,last_name):
print("Hello",first_name,last_name,end='! You just delved into python.')