Problème avec plusieurs variables dans les parenthèses dun input
Résolu/Fermé
Saens
Messages postés
10
Date d'inscription
lundi 27 novembre 2017
Statut
Membre
Dernière intervention
28 novembre 2017
-
27 nov. 2017 à 20:23
Saens Messages postés 10 Date d'inscription lundi 27 novembre 2017 Statut Membre Dernière intervention 28 novembre 2017 - 27 nov. 2017 à 23:10
Saens Messages postés 10 Date d'inscription lundi 27 novembre 2017 Statut Membre Dernière intervention 28 novembre 2017 - 27 nov. 2017 à 23:10
A voir également:
- Problème avec plusieurs variables dans les parenthèses dun input
- No video input ✓ - Forum Matériel & Système
- Input not supported ✓ - Forum Jeux PC
- Input signal out of range - Forum Ecran
- Input signal not found ✓ - Forum Matériel & Système
- Input signal out of range change settings to 1600x900-60hz - Forum Windows
1 réponse
yg_be
Messages postés
22707
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
19 avril 2024
1 471
27 nov. 2017 à 20:27
27 nov. 2017 à 20:27
bonsoir, as-tu essayé ceci?
x= 'veuillez entrer' y = 'un chiffre' z=int(input( x + ' ' + y ))
27 nov. 2017 à 21:09
Merci
Modifié le 27 nov. 2017 à 21:31
as-tu accès à de la documentation python ou à google?
27 nov. 2017 à 21:49
27 nov. 2017 à 22:03
D'après ma rapide recherche de 10 secondes
https://www.google.fr/search?q=python+concatenate+text+and+number
Str() semble être la solution...
27 nov. 2017 à 23:10