Receive user profile and print on output
Write a program thatName,AgeAndCityReceive the user and print on the output
Write a program thatName,AgeAndCityReceive the user and print on the output
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
a = input("name:"),input("age:"),input("city:") print(f"name:{a[0]} , age:{a[1]} , city:{a[2]}")
Name=input(' enter your name ') Age=input(' enter your age ') City=input(' enter your City ') print (name , age , City)
class Intrdouce: def __init__(self, name,age,city): self.name=name self.age=age self.city=city def Soulotion(self): print(self.name,self.age,self.city) name=input("enter your name:") city=input("enter your city:") age=int(input("enter your age:")) obj=Intrdouce(name,city,age) print(obj.Soulotion())
print("Enter name:") x = input() print("enter age:") y = input() print("enter city:") z = input() print("name:" , x ,'\n', "age:" , y ,'\n', "city:" , z)
def main(): # Get information from the user name = input("لطفاً نام خود را وارد کنید: ") age = input("لطفاً سن خود را وارد کنید: ") city = input("لطفاً شهر خود را وارد کنید: ") # Printing the received information print("\nاطلاعات شما:") print(f"نام: {name}") print(f"سن: {age}") print(f"شهر: {city}") # Implementation of the program main()
name=(input('name:')) age=int(input('age:')) city=(input('city:')) print('esm:',name,'senet:',age,'shahret:',city)
name=input("نام خود را وارد کنید: ") age=int(input("سن خود را وارد کنید: ")) city=input("نام شهر خود را وارد کنید: ") print("نام ",name) print("سن ",age) print("شهر ",city)
Submitting answers is currently unavailable.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.