Daily Practice Questions(PYTHON)

Q: Write a program using class methods to accept coordinates as a pair of tuples and return the slope and distance of the line.

Q: Scrap website’s all h1 tag text , split with white space and store them in a list and print the list .

Q: Scrap meta tag with name keywords from a given url.

Q: Write a program to check if a given year is leap year or not.

Q: Write a function print second maximum of a list.

Q: write a program to print current date and time.

Q: WAP to generate histogram printing.

Q: Write a function to print fibonacci series.

Q: Write a function to print HCF.

Q: Write a function to print LCM.

Q: Write a Python program to calculate the sum of the digits in an integer.

Q: Write a Python program to sort three integers without using conditional statements and loops. 

Q: Write a Python program to concatenate N strings. 

Q: Write code to convert Binary into decimal.

Q: write a program to calculate factorial of input number.

Q: Write a Program to print all no.s between 2000 and 3000(both included) whose all digit is even.

Q: Write a program that accepts sequence of lines as input and prints the lines after making all characters in the sentence capitalized.

Suppose the following input is supplied to the program:

Hello Python!

Work hard when young

Then, the output should be:

HELLO PYTHON!

WORK HARD WHEN YOUNG.

Q: Write a program to count digits and alphabets in an input string.

Q: Write a program to calculate a + aa + aaa + aaaa, of an input integer a.

Q: WAP using list comprenshion,to find Square of odd no. from a given comma seperated input.

Leave a comment