from datetime import date def myfun(): first_date = date(2024, 1, 1) last_date = date(2024, 1, 15) difference = last_date - first_date print(difference.days) if __name__=="__main__": myfun()
14
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers.
Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.
Write a Python program that checks whether a specified value is contained within a group of values.
Write a Python program to find out what version of Python you are using.
Write a Python program to calculate the sum of three given numbers. If the values are equal, return three times their sum.