Skip to content

hyrlamiranda/python-learn

Repository files navigation

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)

About

๐Ÿ Learning Python by myself. Comment and help me if you want

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages