Display first name,last name,email and salary only if salary >10000and last name is king?
Answers
Answered by
1
Python Code
first_name = input("Enter your first name: ")
second_name = input("Enter your second name: ")
salary = int(input("Enter your salary: "))
email = input("Enter your email address: ")
if(salary > 10000 && last_name == "King" ):
print("Your name is " + first_name + " " + last_name+ " your email is " + email+ "and your salary is " + salary)
else:
print("Nothing to display")
Similar questions
Science,
3 months ago
Math,
3 months ago
Business Studies,
6 months ago
Math,
6 months ago
Hindi,
11 months ago