1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
anzhelika [568]
3 years ago
7

The function below takes two arguments: a string (name) and an integer (position). Complete the function so that it prints out t

he a welcome statement that tells them person how many people are ahead of them in line. For example, your code should print out the following message if the person's name is Sally and their position is 24 (and hence have 23 people in front of them).
Welcome Sally! There are 23 people ahead of you in line.

student.py 1.
def print welcome (name, position):
# Implement your function here.
position - 1
print("Welcome Sally! There are (1) people ahead of you in line.".Format(name, position))
Computers and Technology
1 answer:
zhuklara [117]3 years ago
3 0

Answer:

The complete function is:

def printwelcome(name, position):

   position = position - 1

   print("Welcome {}! There are {} ahead of you in line".format(name,position))

Explanation:

This defines the function

def printwelcome(name, position):

This calculate the number of people in front

   position = position - 1

This prints the welcme message

   print("Welcome {}! There are {} ahead of you in line".format(name,position))

You might be interested in
You approach a railroad crossing with a cross buck sign that has no light or gates . What should you do ?
Sergio039 [100]
You should probably slow down, make sure no trains are coming (and listen for any train sounds!) before proceeding to cross and go about your way :)
6 0
4 years ago
What is the correct method to use Dreamweaver to find broken links and orphaned files?
Sindrei [870]

Answer: C

Explanation:

5 0
3 years ago
within a list are identified by an index number, placed within square brackets after the name of the list. For example:
svlad2 [7]

<u>When a programmer declare single dimension or double dimensions array they use box bracket with index number to access the cell number.</u>

int a[10]; =  where a is variable name declared with data type as integer and which hold 10 values.

Each is access with cell number or index number surrounded by box brackets

Example a [4] where “a” is variable number and “4” is index number or cell number. By refer “4” user is access the 4 cell data

Maximum “a” single dimension store total of 10 number where cell number or index number starts from 0 to 9.

8 0
3 years ago
What does a class do?
SSSSS [86.1K]

Answer:

adds color to words

Explanation:

adds color to words

7 0
3 years ago
Write a pseudocode to read 10 integer numbers and find the largest number, you need to use loop in your answer.
Sophie [7]
  1. # Algorithm to find the number of integers greater than 10 in a list
  2. list = read(list of integers)
  3. n = len(list)
  4. count = 0
  5. For i = 1 to n
  6.    If list[i] > 10:
  7.        count = count + 1
  8.    Endif
  9. End
  10. Return count
<h3>Explanation:</h3>

Then the length of the list is stored in a variable n. A variable count to store the number of integers more significant than 10 is initialized to 0.

  • Then, a for-loop is used to iterate over the list. A for-loop is used in this case because every element of the inventory needs to be checked for a value greater than 10.
  • In each iteration of the for-loop, the value at the index of the list is checked. If the value is greater than 10, then the counter variable count is incremented by 1.
  • The iterations continue till the for-loop ends. At this point, the variable count will be the number of integers greater than 10.
  • Note that in case the list does not have any number greater than 10, then the count variable will be 0.

To learn more about it, refer

to brainly.com/question/25311149

#SPJ4

3 0
2 years ago
Other questions:
  • A network manager prevents users accessing certain websites. She does this by setting up:
    7·1 answer
  • What does ADSL stand for?
    6·2 answers
  • Because public key encryption requires the use of two different keys, it is also known as _____ encryption
    13·1 answer
  • You are the manager and two employees are having issues with each other. These issues are affecting their happiness and producti
    11·1 answer
  • In terms of in-house custom engines versus third-party engines (like Unity), what has changed today from decades ago, and why?
    8·1 answer
  • For the following data, what is the average number of cycles per instruction?
    10·1 answer
  • The variable most_recent_novel is associated with a dictionary that maps the names of novelists to their most recently published
    12·1 answer
  • Which position most likely requires your Master's Degree for success
    7·1 answer
  • Switched backbone networks:_____.a. always use a ring topology.b. require much more management that do routed backbone networks.
    10·1 answer
  • suppose a network could gaurantee that all delivered packets were delivered in order. if a reliable transport protocol designer
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!