3rd Jun 2017, 7:22 PM
Shimaa
Shimaa - avatar
9 Respuestas
+ 14
First of all, input values are already saved as String, so you don't need to convert it. And the == should be = while assigning the variable. Corrected: https://code.sololearn.com/cL41joY87XXA/?ref=app
3rd Jun 2017, 7:28 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 10
You can replace the first line with this: gender = input()
3rd Jun 2017, 8:56 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 10
My pleasure :)
3rd Jun 2017, 9:09 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 4
@shamima thanks ^^
3rd Jun 2017, 9:08 PM
Shimaa
Shimaa - avatar
+ 3
@Shimaa, I don't understand why you don't want the user to know what they are supposed to type.
3rd Jun 2017, 9:38 PM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar
+ 3
Exactly @Shimaa
3rd Jun 2017, 9:45 PM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar
+ 2
@shamima thanks but how I can hide the " enter ur gender " at the output ? I just want to put the word "male " and it prints A only
3rd Jun 2017, 8:54 PM
Shimaa
Shimaa - avatar
+ 2
@tusiime u mean why I didn't write it like that gender = input ("enter ur gender ":)
3rd Jun 2017, 9:40 PM
Shimaa
Shimaa - avatar
+ 2
@tusiime I want to put it but when I do it shows at the output enter ur gender A and I want to print only A . or it just show up becoz of code playground on phone ? and if u i tried it on computer it will show only A ?
3rd Jun 2017, 9:47 PM
Shimaa
Shimaa - avatar