Différences entre versions de « 100daysofcode/R2 »

De Mi caja de notas

< 100daysofcode
Ligne 4 : Ligne 4 :
 
MIT : Introduction to Computer Science and Programming Using Python
 
MIT : Introduction to Computer Science and Programming Using Python
  
# [https://courses.edx.org/courses/course-v1:MITx+6.00.1x+2T2018/courseware/c77f2cc9fb2a42589f0d723e8fefbd35/a073ff660d7747eea52200aa737feb57/ Param + config Python] + Spyder
+
1. [https://courses.edx.org/courses/course-v1:MITx+6.00.1x+2T2018/courseware/c77f2cc9fb2a42589f0d723e8fefbd35/a073ff660d7747eea52200aa737feb57/ Param + config Python] + Spyder
# Semaine 1 : [https://courses.edx.org/courses/course-v1:MITx+6.00.1x+2T2018/course/#block-v1:MITx+6.00.1x+2T2018+type@chapter+block@fc8f42302c644118adfcfa720f9f403e Fondamentaux Python]
+
1. Semaine 1 : [https://courses.edx.org/courses/course-v1:MITx+6.00.1x+2T2018/course/#block-v1:MITx+6.00.1x+2T2018+type@chapter+block@fc8f42302c644118adfcfa720f9f403e Fondamentaux Python]
# Support Slides Partie 1 et 2 : [[:File:lec1.pdf]] + [[:File:lec2_branch_loops.pdf]]
+
1. Support Slides Partie 1 et 2 : [[:File:lec1.pdf]] + [[:File:lec2_branch_loops.pdf]]
  
 
Conditionnelle imbriquée :  
 
Conditionnelle imbriquée :  

Version du 4 septembre 2018 à 04:30

2ème défi 100daysofcode démarré le 2018-246

R2D1

MIT : Introduction to Computer Science and Programming Using Python

1. Param + config Python + Spyder 1. Semaine 1 : Fondamentaux Python 1. Support Slides Partie 1 et 2 : File:lec1.pdf + File:lec2_branch_loops.pdf

Conditionnelle imbriquée :

   x = int(input('Entre un nombre entier : '))
   if x%2 == 0:
       if x%3 == 0:
           print('Divisible par 2 et 3')
       else:
           print('Divisible par 2 et pas par 3')
   elif x%3 == 0:    
       print('Divisible par 3 et non par 2')


Indentation :

   x = float(input("Entre un nombre pour x : "))
   y = float(input("Entre un nombre pour y : "))
   if x == y:
       print("x et y sont égaux")
       if y!= 0:
           print("par conséquent, x / y donne ", x/y)
   elif x < y:
       print("x est le plus petit")
   else:
       print("y est le plus petit")
   print("Merci !")

R2D2

2018-247


config python sur le navigateur anaconda

  • Mise à jour en cours de Spyder 3.2.8 vers la 3.3.1

Ouvert Anaconda et à l'invite de mise à jour de Spyder (IDE de dév Python), fermeture de Spyder et lancement du terminal :

   conda update qt pyqt
   conda update spyder

> Note: This usually takes a couple of days to work until conda packages are created and uploaded by Anaconda. Please be patient.