بحثت عن كيف اجعل الضمائر تتغير من المونث الى المدكر- حسب النوع الذي يدخله المستخدم - لكن لم افلح... هل هناك حيلة برمجية لذلك من فضلكم؟
name=input('enter your name:')
gender=input('enter your gender:')
age=int(input('enter your age:'))
favorit_food=input('enter your favorit food:')
country=input('enter your country:')
country_dream=input('enter wich country you wih you could live:')
siblings=input('enter the numer of your siblings:')
hobies=input('entre your hobies:')print(f'once upon a time a {gender} whose name is {name}. this {gender} was{age} year old. his favorit food is {favorit_food}. he live in {country} buthe dreams to leave his country and settle in {country_dream}.he had {siblings} siblings. he loves doing in his free time {hobies} .')
السؤال
يوسف اوردو2
السلام عليكم,
هل هذا مايسمى ب Mad libs Genartor من فضلكم؟
بحثت عن كيف اجعل الضمائر تتغير من المونث الى المدكر- حسب النوع الذي يدخله المستخدم - لكن لم افلح... هل هناك حيلة برمجية لذلك من فضلكم؟
3 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.