Skip to content

mustafagundogdu80/Python_Modul_Week_1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Python_Modul_Week_1

  • Question 1: Write a Python code that prints numbers from 1 to 10 on the screen.

  • Question 2: Take a number input from the user and write a Python program that prints even numbers up to this number on the screen. Do this first with 'for' and then with 'while' loops.

  • Question 3: Write a Python code that receives a start and end value from the user and prints all the numbers between these values ​​(including the end value) on the screen.

  • Question 4: Get a number from the user and write a Python code that prints whether this number is odd or even.

  • Question 5: Write a Python program that takes a positive integer input from the user and calculates its factorial. Factorial is the product of all positive integers between a number itself and 1. For example: if the user entered 5, the program should give the following output: Enter a number from the user: 5 Factorial: 120

  • Question 6: Write a Python code that receives a number from the user and checks whether this number is prime.

  • Question 7: How to create a loop that calculates the Fibonacci sequence and returns the result as a list containing numbers up to a certain limit?

  • Question 8: Write a Python code that takes a word from the user and prints the reverse of this word on the screen.

  • Question 9: How to create a combination of loop and conditional statement that takes a word input from the user and checks whether that word is a palindrome (the same when read backwards)?

  • Question 10: Write the code that calculates the person's weight index and returns the result as underweight, overweight or overweight according to the index value. (You can look on the internet for the weight index calculation) To do this, ask the user for their weight and height measurements. weight index If it is below 25, it is weak, Between 25-30 is normal, If you are over 30-40, you are overweight. If you are over 40, you are overweight.

  • Question 11: How to write a Python program that finds the largest of three numbers entered by a user?

  • Question 12: Get Midterm and Final grades from a student for any course. The sum of 40% of the midterm exam grade and 60% of the final grade will give the year-end average. If the average is below 50, "FAILED" will appear on the screen, and if it is 50 or above, "SUCCESSFUL" will be displayed on the screen. This printing process is 4 lessons. and the lessons will be written one after the other.

Hackerrank assignments

  1. https://www.hackerrank.com/challenges/python-arithmetic-operators/problem
  2. https://www.hackerrank.com/challenges/find-second-maximum-number-in-a-list/problem
  3. https://www.hackerrank.com/challenges/python-print/problem
  4. https://www.hackerrank.com/challenges/finding-the-percentage/problem

About

VIT_Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%