Indent the statements in the if block

Assignment Help Business Management
Reference no: EM132265297

John is the lab administrator. How is a Python program with if-else structure created that performs the following tasks:

(1) Ask the user to enter a username.

(2) If the entered username is John, print Hello, administrator!; If the entered name is NOT John, print Hello, XXX! (XXX is the username entered by user, don't forget the '!' at the end of message).

(3) At the end of the program, print Session end, good bye XXX! (XXX is the name entered by user, don't forget the '!' at the end of message).

Hint:

Don't forget to indent the statements in the if block (In Canvas, "Tab" is not adding spaces for you, so you have to manually type the "space" key).

>>> a = input("Enter a user name: ")

Enter a user name: John

>>> print ("Hello, administrator!")

Hello, administrator!

>>> print ("Hello",a, "!")

Hello John !

>>> print ("Session end, good bye",a, "!")

Session end, good bye John !

Reference no: EM132265297

Questions Cloud

How strategies could be implemented in your local community : Choose one of the strategies listed by the U.S. Surgeon General to Eliminate Health Disparities provided in the link below. Briefly describe how one of these.
Eliminating partial dependencies : Second Normal Form (2NF) Let's take our 1NF circus tables to Second Normal Form (2NF) by eliminating partial dependencies.
Third normal form : To take this motley crew of tables to Third Normal Form (3NF), we must now take 2NF tables and eliminate all transitive (i.e., hidden) dependencies
Two of the key activities of the business analyst : Forms are used primarily to enable data entry. Two of the key activities of the Business Analyst are.
Indent the statements in the if block : John is the lab administrator. How is a Python program with if-else structure created that performs the following tasks:
Describe in detail what security controls are : 1. Describe in detail what security controls are, how they are chosen, and how they should be managed once implemented.
Influence product adaptation in new markets : What are the various factors that influence product adaptation in new markets?
Connectionless and connection environment : Compare source routing with hop-by-hop routing with respect to (1) packet header overhead, (2) routing size table, (3) flexibility in route selection
Draw a navigation maps for student study space portal system : Draw a navigation maps for the Student Study space portal system - analyse above system and think about a set of new interactions

Reviews

Write a Review

Business Management Questions & Answers

  Mandatory vaccination is a violation of a parent

Do you think that mandatory vaccination is a violation of a parent's right to chose what is best for their child?

  What type of research would a sales man use

What type of research would a sales man use if he work on commission and salary basic or applied research to be more successful.

  Give the definition of the function

Add this function to the class binaryTreeType1 and suggest a program to test this function.

  Ideas and so on related to their merchandise categories

deas and so on related to their merchandise categories. Sometimes they make positive statements, other times they criticize things and sometime they pose questions for customer.

  Determining the semi-annual coupons

Acme Inc. just issued a bond with a $10,000 face value and a coupon rate of 7%. If the bond has a life of 30 years, pays semi-annual coupons, and the yield to maturity is 9%, what will the bond sell for?

  Personal reaction in depth with explanation

After wacthing "12 O'clock High", describe what you learned in depth with explanation and describe your personal reaction in depth with explanation.

  Elements and measures for workforce effectiveness

Elements and measures for workforce effectiveness-The process to make any changes necessary to ensure standards are similarly worded

  Discriminate between the major sub disciplines of toxicology

Compare and discriminate between the major sub disciplines of toxicology and their roles in occupational safety and health and illustrate the mechanisms by which a toxicant passes through the cell membrane routes of absorption ,the distribution pr..

  Maximum interest rate the bank

What is the maximum interest rate the bank needs to offer on the loan if Martin is at least to break even on this? investment?

  Explain the issues associated with a possible increase

Explain the issues associated with a possible increase to the federal minimum wage rate and strengthening overtime pay protections.

  Compensation management

Research indicates that people join a firm, stay in (or leave) a firm, and perform better in their jobs because of pay. Provide a rationale for each of these t

  Guide for founder agreement and other legal issues

What is a founders' agreement? Describe the purpose of a buyback clause and why it's significant. Mention and explain four (4) steps entrepreneurs can take to avoid legal disputes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd