Hi,
Here is my codes for the quiz#11 :
https://github.com/aureliemartinet/TC101/blob/master/e_quizz11.py
https://github.com/aureliemartinet/TC101/blob/master/checkbanana.py
https://github.com/aureliemartinet/TC101/blob/master/checkbanana.txt
Have a goo…
Hi, The subject of this task is to display to the user an approximation of e. When a user give you a precision for example 2, you have to display e and to be sure that the two first numbers just after the coma are right. To check your result you can use the google […]
Hi, Here is my code to create the square root function based on the Babylonian method. I reproduced the formula in wikipedia: x represent the approximation of the square root of n y is the quotient between the number n and this approximation In my program I chose 0,0000001 of accuracy but you can change this value […]
Hi everybody, Today I want to share with you my solution to create a greatest common divisor function. First , I was in wikipedia to understand how works this mathematical formula. I found this rule: gcd(a,0) = a . That’s why I chose b = 0 to stop my while loop. Then I focused of […]
Hi, My goal is to show you how to create a github account to share your python code when you post a wsq on your blog. Go on the website https://github.com and create an account.You have to choose a funny nickname. This one is really important because your github URL and github adress depend on. Create a new repository. […]
Hi, Here is my code to create a dictionary. First you have to create your dictionary by using the dict( ) method. So you can see that it’s not a good way to use dict as a variable because this word is reserved. Then you can match a key and a value. A dictionary is […]
Hi,
Here is my code to create a string and display it !
First you create your string and then you can display the letter that you want !
Have a good day 🙂
Hi,
Today I want to show you how it’s possible to create a list in python.
First you can create an empty list. The syntaxe to create a list is : [ ]
Then, you can call the append method to add some values in your list.
Have a good day !
Hi, Here is my program to look for the lychrel numbers. I put some comments of my code to get it more easily !!! Have a good night ! Yo Soy 196 ! #WSQ11 #TC101 pic.twitter.com/8TIg5tZjjL — Aurélie Martinet (@AMartinet14) October 29, 2015
Hi, Here is a program which called fibonacci function. I used the recursion concept. We can see that the function called itself with another parameter. This method has the same impact that create a for loop but it’s really faster. Have a good day !