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

  Provide a basis for making sound procurement decisions

Provide a basis for making sound procurement decisions.

  Decision maker position for a large company

Place yourself in the decision maker position for a large company. The sales manager who wants to gain (UPS) business feels that a team effort will help.

  Systems to enhance network security

What do you think are the most important devices or systems to enhance network security? For example; biometrics, anti-virus software, common access cards, login authentication, etc. Why do you think your choice of device or system is important..

  Implementing a new corporate cost-cutting strategy

A middle level manager is assisting you in implementing a new corporate cost-cutting strategy in Panda & Mickey where technology will be replacing personnel.

  Qualitative research for manufacturer of small kitchen

Assume you are a manufacturer of small kitchen electrics-What qualitative research would you recommend, and why?

  Give an example of a service breakdown you experienced

Give an example of a service breakdown you experienced. Describe the incident. Explain the recovery method of the company. Are you still a customer of the company? Why or why not?

  What are your firm maximum profits

You are the manager of a firm that sells its product in a competitive market at a price of $48. Your firm's cost function is C = 60 + 2Q2. What are your firm's maximum profits? (Please show your work)

  Discuss the key arguments and findings from pertinent

Discuss the key arguments and findings from pertinent literature and draft your critical review keeping in mind its purpose Formulate the main research question

  Perfectly competitive labor market

A company sells pencils in a perfectly competitive product market and hires workers in a perfectly competitive labor market. Assume the market wage for workers is $ 150 per day.

  Process impact the outcome of the event

Think about the last event you had to plan for either at work or in your personal life. Did you have a process? How did having or not having a process impact the outcome of the event?

  Key characteristics of the users of the products

Determine the key characteristics of the users of the products and/or services of the health care provider you selected. Analyze the competitive environment of the health care provider you selected and recommend a course of action for strategic mar..

  What is las vegas selling

1. What is Las Vegas selling? What are visitors really buying? Discuss these questions in terms of the core benefit, actual product, and augmented product levels.

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