Skip to content
Sign upLog in
← Back to Community
Fr : Vous pouvez entrer avec mos dans mon teams ; Ar:ممكن تدخلو مع في فرق
Profile icon
yahyabakkali

Je m'appelle Rayane, j'ai 14 ans; est j'ai fais programmation
Html 5 ; Python

أن إسمي ريان عندي 14 سنة أتقن برمجة
Html 5 ; Python

My name is Rayane, I am 14 years old; is I programming
Html 5 ; Python

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
Profile icon
Hmdi
Profile icon
yahyabakkali
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

You are not putting your parameters in the right way. Try naming them like this.

def Aya(): name=input ("Enter your name: ") pos=input("Enter your pos: ") age=input("Enter your age: ") print ("Hello " + name+ ",\n Your are: "+ pos+",\n Your age is:" + age) Aya()

for now, you have no parameters, you can do this.

def Aya(name, age): name=input ("Enter your name: ") pos=input("Enter your pos: ") age=input("Enter your age: ") print ("Hello " + name+ ",\n Your are: "+ pos+",\n Your age is:" + age) Aya("bob", 10)

like that.
That should work

Profile icon
yahyabakkali

@RYANTADIPARTHI

مع في فرق ممكن تدخل

Profile icon
RYANTADIPARTHI

@yahyabakkali
لا مشكلة

Profile icon
CodingCactus

@RYANTADIPARTHI

image
what is that? That is bad code.

Profile icon
RYANTADIPARTHI

@CodingCactus
yes, but i was showing an example of how to use parameters. it's not about the code. it's to show using parameters.

Profile icon
CodingCactus

@RYANTADIPARTHI
but that is not how you use parameters lmao

Profile icon
RYANTADIPARTHI

@CodingCactus
i know. I was showing how to call them, and name them. Not use them yet. That persons's code had parameters, and didn't know how to call them. i was just showing how to call them.

Profile icon
BananaJellyfish

when you call aya() at the end you need to call aya(name) instead tick please!

Profile icon
BananaJellyfish
Profile icon
yahyabakkali
Profile icon
yahyabakkali

@BananaJellyfish
مع في فرق تدخل
OK

Profile icon
BananaJellyfish
Profile icon
BananaJellyfish

@yahyabakkali
it works when you add it
image

Profile icon
yahyabakkali