Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.64 KB

Unidad5Ejercicios.md

File metadata and controls

45 lines (28 loc) · 1.64 KB

Ejercicios

  • Write a Python program to find those numbers which are divisible by 7 and multiple of 5, between 1500 and 2700 (both included).

  • Write a Python program to convert temperatures to and from celsius, fahrenheit.

  • Write a Python program that accepts a word from the user and reverse it. NO OPCIONAL

  • Write a Python program that prints all the numbers from 0 to 6 except 3 and 6.

  • Write a Python program to get the Fibonacci series between 0 to 50.

  • Write a Python program which takes two digits m (row) and n (column) as input and generates a two-dimensional array. The element value in the i-th row and j-th column of the array should be i*j Expected Result : [[0, 0, 0, 0], [0, 1, 2, 3], [0, 2, 4, 6]]

  • Write a Python program that accepts a string and calculate the number of digits and letters.

  • Write a Python program to calculate a dog's age in dog's years. Note: For the first two years, a dog year is equal to 10.5 human years. After that, each dog year equals 4 human years.

  • Write a Python program to check a triangle is valid or not.

  • Write a Python program to check a triangle is equilateral, isosceles or scalene.

  • Write a Python program to construct the following pattern, using a nested loop number.

1
22
333
4444
55555
666666
7777777
88888888
999999999

Funciones

  • Write a Python function to find the Max of three numbers.

  • Write a Python function to sum all the numbers in a list.

  • Write a Python function to calculate the factorial of a number (a non-negative integer). The function accepts the number as an argument.

  • Write a Python function that checks whether a passed string is palindrome or not.