CodeSolved

A comprehensive source of programming questions and exercises

Receive user profile and print on output

Practice Easy 1/ Download 4888 Views Most popular

Write a program thatName,AgeAndCityReceive the user and print on the output

25 Answers

This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
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

This answer is only visible to premium members

Subscription is currently unavailable.
a = input("name:"),input("age:"),input("city:")
print(f"name:{a[0]} , age:{a[1]} , city:{a[2]}")
Mohamad Download Python
Name=input(' enter your name ') 
Age=input(' enter your age ') 
City=input(' enter your City ') 
print (name , age , City)
Zahra1392 Download Python
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())
Roghaye.m Download Python
print("Enter name:")
x = input()
print("enter age:")
y = input()
print("enter city:")
z = input()
print("name:" , x ,'\n', "age:" , y ,'\n', "city:" , z)
Ali.r.h.z Download Python
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()
Mma123 Download Python
name=(input('name:'))
age=int(input('age:'))
city=(input('city:'))
print('esm:',name,'senet:',age,'shahret:',city)
Maryam.n Download Python
name=input("نام خود را وارد کنید: ")
age=int(input("سن خود را وارد کنید: "))
city=input("نام شهر خود را وارد کنید: ")
print("نام ",name)
print("سن ",age)
print("شهر ",city)
Saeeda33 Download Python
<< Previous page 1 2 3 Next page >>

Submit answer

Submitting answers is currently unavailable.

Related content

Detection using AI
×
×
Close