Aide python
Fermé
jere6342
Messages postés
13
Date d'inscription
vendredi 21 novembre 2008
Statut
Membre
Dernière intervention
5 avril 2009
-
4 déc. 2008 à 14:15
fiddy Messages postés 11069 Date d'inscription samedi 5 mai 2007 Statut Contributeur Dernière intervention 23 avril 2022 - 4 déc. 2008 à 15:14
fiddy Messages postés 11069 Date d'inscription samedi 5 mai 2007 Statut Contributeur Dernière intervention 23 avril 2022 - 4 déc. 2008 à 15:14
A voir également:
- Aide python
- Citizen code python avis - Accueil - Outils
- Python generator - Télécharger - Sécurité
- Trouver la position d'un élément dans une liste python ✓ - Forum Python
- Python retour à la ligne dans le code - Forum Python
2 réponses
fiddy
Messages postés
11069
Date d'inscription
samedi 5 mai 2007
Statut
Contributeur
Dernière intervention
23 avril 2022
1 844
4 déc. 2008 à 14:34
4 déc. 2008 à 14:34
Salut,
Il faut inclure la bibliothèque math :
Et après tu utilises cos et cie. Attention, c'est acos et non arccos sous python ;)
Cdlt
Il faut inclure la bibliothèque math :
from math import *
Et après tu utilises cos et cie. Attention, c'est acos et non arccos sous python ;)
Cdlt
jere6342
Messages postés
13
Date d'inscription
vendredi 21 novembre 2008
Statut
Membre
Dernière intervention
5 avril 2009
4 déc. 2008 à 15:07
4 déc. 2008 à 15:07
bonjour,
comment fait on pour effectuer une puissance sur python? car ^ sa marche pas!!
comment fait on pour effectuer une puissance sur python? car ^ sa marche pas!!
fiddy
Messages postés
11069
Date d'inscription
samedi 5 mai 2007
Statut
Contributeur
Dernière intervention
23 avril 2022
1 844
4 déc. 2008 à 15:14
4 déc. 2008 à 15:14
^ marche très bien pour le XOR.
En python pour les puissances, on utilise **
Cdlt
En python pour les puissances, on utilise **
Cdlt