Computer Science, asked by ramsmedicine, 9 hours ago

1). Write a Python program to display the names of your favorite actor and actress.

pls answer I will give u 100 points only for correct answers

Answers

Answered by Anonymous
3

Displaying the names of actor and actress - Python

We would take a user input string first, to enter the name of favourite actor. After that same as favourite actor we will take a user input string, to enter the name of favourite actress.

We know that the input() function returns a string, string is one of the basis types in Python that store text.

We then display the names of favourite actor and actress, by entering the names.

\rule{300}{1}

The Program

actor=input("Enter your favourite actor name:")

actress=input("Enter your favourite actress name:")

print("Your favourite actor name is", actor, "and your favourite actress name is", actress)

\rule{300}{1}

Sample Run

Enter your favourite actor name: Tom Cruise

Enter your favourite actress name: Margot Robbie

Your favourite actor name is Tom Cruise and your favourite actress name is Margot Robbie.

Answered by juwairiyahimran18
0

Displaying the names of actor and actress - Python

We would take a user input string first, to enter the name of favourite actor. After that same as favourite actor we will take a user input string, to enter the name of favourite actress.

We know that the input() function returns a string, string is one of the basis types in Python that store text.

We then display the names of favourite actor and actress, by entering the names.

\rule{300}{1}

The Program

actor=input("Enter your favourite actor name:")

actress=input("Enter your favourite actress name:")

print("Your favourite actor name is", actor, "and your favourite actress name is", actress)

\rule{300}{1}

Sample Run

Enter your favourite actor name: Tom Cruise

Enter your favourite actress name: Margot Robbie

Your favourite actor name is Tom Cruise and your favourite actress name is Margot Robbie.

Similar questions