/python-learn

🐍 Learning Python by myself. Comment and help me if you want

Primary LanguagePython

Learning Python

the Femalecodertocat

##Simple Programming Problems

http://adriann.github.io/programming_problems.html

##Elementery

1.Write a program that prints β€˜Hello World’ to the screen. (helloworld.py)

2.Write a program that asks the user for her name and greets her with her name. (greets.py)

3.Modify the previous program such that only the users Alice and Bob are greeted with their names. (greetings.py)

4.Write a program that asks the user for a number n and prints the sum of the numbers 1 to n (sumofnumbers.py)

5.Modify the previous program such that only multiples of three or five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17 (multiplesofnumbers.py)

6.Write a program that asks the user for a number n and gives him the possibility to choose between computing the sum and computing the product of 1,…,n. (choice.py)

7.Write a program that prints a multiplication table for numbers up to 12. (multiples.py)

8.Write a guessing game where the user has to guess a secret number. After every guess the program tells the user whether their number was too large or too small. At the end the number of tries needed should be printed. I counts only as one try if they input the same number multiple times consecutively.(guess.py)

9.Write a program that computes 4β‹…βˆ‘k=1106(βˆ’1)k+12kβˆ’1=4β‹…(1βˆ’1/3+1/5βˆ’1/7+1/9βˆ’1/11…). (computes.py)

##MORE EXERCISES HERE: https://github.com/hyrlamiranda/python_learn/tree/master/codeacademyExercises FROM https://www.codecademy.com/learn (CodeCademy)