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
name = input("Enter your name: ").title()
age = int(input("Enter your age: "))
city = input("Enter your city: ").capitalize()
print("Name: {}\nAge: {}\nCity: {}\n".format(name, age, city))
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("what is your name:") b=int(input("how old are you:")) c=input("enter your city:") print(a,b,c)
a = input("name:"),input("age:"),input("city:") print(f"name:{a[0]} , age:{a[1]} , city:{a[2]}")
name = input ('Enter name: ')
age = int (input ('Enter age: '))
city = input ('Enter city: ')
print ('Name:', name)
print ('age:', age)
print ('city:', 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()
Submitting answers is currently unavailable.
Write a program that receives a rectangular length and width from the input and prints its area in the output
Write a program that gets distance to meters and converts to kilometers and shows at the output tips: each km = 1000 m
You must be logged in to access this section.
Login/Sign up 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.