Python 3.12 LAB: Input and formatted output: Right-facing arrow Given input characters for an arrowhead and arrow body, print a right-facing arrow. Ex: If the input is: * # Then the output is: # ******## ******### ******## #

Answers

Answer 1

The code below prints the required shape using the string manipulations in Python.

In Python, if we multiply a character with a number, we get that character side by side that number of times.

For example: 6 * '#' would give us → ######

Also, we can use + sign to concatenate the strings.

For example: 'hi' + ' there' would give us → hi there

We use this approaches to print the required shape line by line.

Comments are used to explain each line.

The output is attached as an image.

#get the characters from the user

base_char = input()

head_char = input()

#set first row with 6 spaces and 1 head_char

row1 = 6 * ' ' + head_char

#set second row with 6 base_chars and 2 head_chars

row2 = 6 * base_char + 2 * head_char

#set third row with row2 and 1 head_char

row3 = row2 + head_char

#print the rows to draw the shape

print(row1)

print(row2)

print(row3)

print(row2)

print(row1)

You may see another question at:

https://brainly.com/question/22101725

Python 3.12 LAB: Input And Formatted Output: Right-facing Arrow Given Input Characters For An Arrowhead

Related Questions

Write a program that get
the age of 50 people and
display the number of
people that fall under:
1. Baby : 0-5
2. Kids and teenagers: 6-17
3. Adults : 18 and over

Answers

Answer:

people = list(map(int, input().split()))  # gets input and makes them into an integer

for i in range(len(people)):

   if 0 <= people[i] <= 5:

       print('Baby')  # You didn't specify how you want to 'store' the info, but I'm just going to print it out

   elif 6 <= people[i] <= 17:

       print('Teen')

   elif 18 <= people[i]:

       print('Adults')

Explanation:

This is the basic structure of the code. This is written in Python 3x. If you are writing in a different language, then just use the template given to you!

what is a "for loop" that will produce the following output:

1+2 = 3
2+3 = 5
4+5 = 9
8+9 = 17
16+17 = 33
32+33 = 65
64+65 = 129

any help would be very appreciated

Answers

Answer:

128+129= 257

Explanation:

128+129= 257

Answer:

1+2= 3

loop for all interger

Most people have unexpected expenses at some time. Yes. No.

Answers

Answer:

Yes

Explanation:

someone pls help me!!!

Answers

Answer:

I think it’s really cool. You don’t have to find someone’s Gm ail and then write a subject and whatever else. You can just send it like a message. I love how it has the call option because it means that you don’t have to have a number to call your friends or family. And you can do business em ail while messaging whoever you need to instead of going back and forth.  

You can promote your business. You can also promote your video and share your screen. It is also a good way to talk to customers to discuss what you need to. A bunch of people have emails and it’s fairly simple to just add your friend and text them.  

It might be hard to figure out at first. But when you get used to it it’s fairly simple. It can also shut down due to a bug and stop working, which makes it even more complicated. You can also get creeps that can hack into your Gm ail and read all of your information.

Explanation: heres a better one with no typos

How many times will the loop body execute?
x = 3
while x >= 0:
X = X - 1

3

4

5

6

Answers

Answer:

B. 4

Explanation:

Rules :

x = x - 1

if x = 3, so :

x = x - 1

4 = 4 - 1

4 = 3

Option B

The code below the directions is all I have gotten so far would love any help to solve this thanks.

Answers

Answer:

variable = input("Enter some text: ")

midIndex = (len(variable) // 2)  

midFix = variable[midIndex-1:midIndex+2]

print('Length is:', len(variable))

print('Middle index is:', midIndex)

print('Midfix of 3 is:', midFix)

Explanation:

You will want to do integer division here (//)

Also, keep in mind that the very first character of the string has index 0, which is why the midFix runs from  midIndex-1 to midIndex+2

What is another term for the notes that a reader can add to text in a word-
processing document?
Columns
Formatting
Font
Comments

Answers

Another term for the notes that a reader can add to the text in a word-processing document is known as Comments. Thus, the correct option for this question is D.

What are the characteristics of word documents?

The characteristics of word documents are as follows:

It allows a user to construct professional write-ups.It has editing and formatting tools that modify the existing documents.It authorizes the user to insert charts, tables, diagrams, etc. within the document to make it more attractive.

According to the context of this question, a comment is another term that represents the notes a reader can normally insert within the existing document in order to modify or highlight the required text in the document.

Therefore, a comment is another term for the notes that a reader can add to the text in a word-processing document. Thus, the correct option for this question is D.

To learn more about word-processing documents, refer to the link:

https://brainly.com/question/1596648

#SPJ1

Match each term to its definition.

parameter
return value
function

a value that can be passed from a function back to the calling part of a program.

a value that can be passed to a function

a group of instructions that can be used to organize a program or perform a repeated task

Answers

Answer:

Parameter - A value that can be passed to a function

Return Value - A value that can be passed form a function back to the calling part of a program

Function - A group of instructions that can be used to organize a program or perform a reapeated task.

9. These particular machines can be decentralized.

A) Risograph
B) Photocopier
C) Desktop computer
D) Printers

__and__??

Answers

Answer:

A, B

Explanation:

Because the desktop computer and the printers are decentralized, they're connected with another noce in a company.. So I suppose that the Risograph and photocopier isn't decentralized.

Which of these would be a good name for a variable that holds a person’s first name?

tomSmith

N01

firstName

lastName

Answers

Answer:

firstNAme

Explanation:

Answer:

firstName

Explanation:

I took the test

what is the full form of MHz​

Answers

Answer:

megahertz

Explanation:

The megahertz, abbreviated MHz, is a unit of alternating current (AC) or electromagnetic (EM) wave frequency equal to one million hertz (1,000,000 Hz). The megahertz is commonly used to express microprocessor clock speed.

Technician A says that long hair should be secured to avoid entanglement. Technician B says that hairnets are NOT an effective means to secure hair. Who is correct? Select one: a. Technician A b. Technician B c. Both A and B Or d. Neither A nor B​

Answers

Answer:

technician A if you use the net it still saves the hair than letting it long and exposed

What is the purpose of a project overview?


to provide specific roles for all of the “little people” working on the project

to provide an “up close” look at the project to the leadership

to provide an “in-depth” look at all of the tasks that will need to be done

to provide a “big picture” of the project to everyone involved

Answers

Answer:

option 3 should be the answer is this helps please give the brainliest award.

Answer: D

to provide a “big picture” of the project to everyone involved

this is the right answer

Compare Ethernet frames to other frames.


•Most frames use CRC, but Ethernet does not. •Most frames use a protocol called CSMA/CD.

•Ethernet frames generally do not have stop frames.

•Ethernet frames have more parts in their frame footers.

Answers

Most frames use crux and I can only do a couple

Write a Python program in which a student enters the number of college credits earned. If the number of credits is greater than 90, 'Senior Status' is displayed; if greater than 60, 'Junior Status' is displayed; if greater than 30, 'Sophomore Status' is displayed; else, 'Freshman Status' is displayed.

Answers

Answer:

CONCEPT:Python code to get the status of Student based on thier Earnings CODE: def main(): print('Student Classification Software.') try: userCredit =int( input('\nPlease enter student credits: ')) if userCredit >90: print('\nSenior Status') elif 60 <userCredit <90 : print('\nJunior Status') elif 30 < userCredit < 60: print('\nSophomore Status') else: # this mean userCredit >= 26...

Explanation:

A certain university classifies students according to credits earned. A student with less than 30 hours is a Freshman. At least 30 credits are required to be a Sophomore, 60 to be a Junior, and 90 to be a Senior. Write a program that calculates class standing from the number of credits earned with the following specifications:

Write a function named determineStatus() that prompts the user for how many credits they have earned and uses a decision structure (if, else, etc.) to determine the class standing of the student. The function should display the standing to the student (85 points).

If the user tries to enter a negative value, the program should alert the user that negative numbers are not allowed (5 points).

Write a main() function that calls the determineStatus() function (5 points).

arithmetic test is given twice within a few days to a student. The highest possible score is 40. He receives a score of 35 the first time and a score of 18 the second time. If similarly varying results are obtained from other students, the test result is probably unreliable in the idea o

Answers

Similar varying results obtained as scores from other students indicates that the test is; Unreliable.

This is about test reliability and it is based on consistent results. This implies that it is a measure of how well a characteristic of a test is measured dependably or consistently.

With reference to the above on test reliability, applying it to our question. If the student took the test twice and got a similar result the two times, then the test is said to measure the score reliably but if the two scores are not similar but vary widely from each other, then the test is said not to measure the score consistently and is said to be unreliable.

In our question, since varying results scores are continually obtained for two same tests of same students, then we can say the test does not measure the scores reliably and we can conclude that the test is unreliable.

Read more at; https://brainly.com/question/15136257

Of the following options, which is most helpful in developing the effective study habit of staying organized? Keep pens, pencils, and highlighters off the desk. Put all computer files in one folder on the desktop. Store notes for all courses in a single notebook. Use a calendar to keep track of assignment due dates.

Answers

Answer:

use a calendar to keep track of due dates.

Explanation: If you use a calendar all of your assignments will be kept track of and will be organized not causing you to stress or become unmotivated to do any work at all.

Use a calendar to keep track of assignment due dates is most helpful in developing the effective study habit of staying organized. Hence, option D is correct.

What is effective study?

Longer study sessions are less effective than shorter, more concentrated ones. In fact, one of the best study methods is to spread out your studying over a few sessions. During rigorous study sessions, which might last 30 or 45 minutes each, active learning strategies are applied.

Spaced practice, also known as scattered practice, is learning that occurs throughout a number of sessions at various times. Effective study methods can help you feel better about yourself, more competent, and more confident.

They can aid in reducing the pressure brought on by due dates and exams. You might be able to cut down on the amount of time you spend studying and free up more time by strengthening your study habits.

Thus, option D is correct.

For more information about effective study, click here:

https://brainly.com/question/10336207

#SPJ2

how do you unblock things on a school cromebook?

Answers

Answer:

School chromebooks are usually controlled/managed my administrators or teachers, so if you wanted to unblock things on a school chromebook you would have to ask an administrator or teacher at your school.

Ctrl+Home moves the cell pointer to the cell__________MSExcel.​

Answers

Answer:

key stroke

Explanation:

Ctrl+Home moves the cell pointer to the cell___key stroke_______MSExcel.

The answer will be

[tex]key \: \: \: \: stroke[/tex]

Hope it helps.

ray4918 here to help

1. What are the main uses for Protein in the body?
2. What are the main types of food you get Protein from?

Answers

Answer:

1 muscle building

2 meats, nuts

Explanation:

1 proteins are needed for growth ,they are used to repair worn out tissues, they are used to make enzymes and hormone they give energy ,they are used to make white blood cells stronger.

2 meat egg fish milk beans

Which format has the largest file size?

Answers

TIF hope this helps you out

Project Description In this exercise, you are responsible for the design and implementation of a school dismissal database. School personal need a database to determine whether students ride the bus at the end of the school day or if students are pickup by an organization or designated adult. The database will be used by school personal to look-up the names of adults and organizations who have the authority to pick-up students from the school from school. To design the database, you will first review the preliminary design requirements. The preliminary design requirements are minimal and incomplete. Add requirements to complete the design of the database. Describe requirements on this document as indicated by the words, Complete this section of the document. You will use Oracle Data Modeler to create a logical and relational model. Then you will implement your database design as an Oracle database. After the Oracle database is created, reverse engineer the database to the relational and logical models.

Answers

Answer:

school bus for. the students

PLZZZ HELPPP NOWW

A person's digital footprint consists of the following:

I. Comments you leave
II. Pictures you post
III. Topics you search
IV. Apps you use
V. Music you download
VI. Emails you send

Answers

Answer:

2 and 6 for sure maybe 3 I'm not too sure on that one

How to resize images for the Wallpaper subreddit in r.eddit.

Answers

Answer:

You can probably use a website to change the resolution of the image.

Please help me ASAP!!

In Python, year = 2018 is known as a(n):

O conditional expression.
Otest case.
Oassignment statement.
O declarative indicator.

Answers

Answer:

assignment statement

Explanation:

it is assigning the number 2018 to variable called year

it is NOT checking to see if it was true (then it would be ==

what is true of open source software

Answers

Answer:

lo que es cierto del software de código abierto?  

opera con los principios subyacentes de la producción de iguales y la colaboración masiva, creando un desarrollo de software más sostenible para los usuarios finales.

Explanation:

What are other ways you could use the shake or compass code blocks in physical computing projects?​

Answers

Answer:

There are different ways of quick navigation between files and functions. ... You should use the menu 'Remove file from project' instead of deleting files. ... A Makefile generation tool for Code::Blocks IDE

Take the midterm, quiz, and final exam of 5.1 million points, and the average score is 1) A if it is 90 or higher, 2) B if it is less than 90 and 80 or higher, 3) C if it is less than 80 and 70 or higher, 4) Write a program that outputs D if less than 70 and more than 60, 5) F if less than 60.

Answers

Answer:

B

Explanation:

Not so sure

Please help lol..
Type the correct answer in the box. Spell all words correctly. Which description uses two to three sentences? A short (two to three sentences) description of a story that includes the main character, the antagonist, and the genre of the story is a _____ .

Answers

Answer:

This would be called the summary or the synopsis. In further detail, it's a short, lively overview of a story, including the main character, the antagonist, and the genre.

Explanation:

Hope it helps!

Answer:

introduction

Explanation:

3. Find the best.

Write a program that will allow an instructor to enter a series of exam scores. After the last score, the instructor should enter a negative number as a signal that there is no more input. Print the average of all the scores and the highest score entered.

Do this with beginner c programming.

Example output:

Exam Average Program
Enter the scores when prompted, negative number to quit.
> 1
> 10
> 5
> -1

Average Score = 5.3333, best = 10

Answers

Answer:

1. is the answer

Explanation:

mark me as brainlest

Other Questions
Is it accurate to refer to the Americas as the New World? Why or Why not? How does the principle of separation of powers relate to the principle of popular sovereignty?a. It makes it easier for the executive branch to carry out its duties.b. It allows the Supreme Court to determine the constitutionality of laws.c. It helps ensure that the people remain the source of all government authority.d. It guarantees that elected officials will always set policy based on public opinion. Please help again! Ill give brainleast to whoever gives correct answer! On August 2, Jun Co. receives a $6,300, 90-day, 12% note from customer Ryan Albany as payment on his $6,300 account receivable. 1. Compute the maturity date for the above note. multiple choice October 29 October 30 October 31 November 1 November 2 The population of Medford High School is800 students and the population ofWestville High School is 1240 students.The population of Medford High isincreasing at a rate of 30 students peryear, while the population of WestvilleHigh is decreasing by 25 students peryear. In about how many years will thepopulation of the two schools be thesame? name 2 natural sources of water Some of the stars you see in the night sky are already gone. Why is it possible to still see their light? find the angle of 1 and 3 Help please, if you're gonna do it for points it's whatever I do it too but if a factual person could give me an answer it would help. Fill in the blanks WILL MARK BRAINLEST Why do organisms die if they do not have enough water? A man-in-the-middle attack or impersonation are likely to result in problems withdata availability.data confidentiality.data integrity.data mining. A point is reflected across the x-axis. The new point is (5,-3.5). What is the distance between the two points? An important reason for China's rapid population increase in the 17th and 18th centuries was True or False?The united navy was the first to deploy an ironclad into the Marie battles of the Civil War PLEASEEEEE HELPPPPP ASAPPPPP In the summer of 178g while Haiti was still domant as the French colony of Saint-Domingue, what major event was happening in Europe? Do not abuse or misuse any piece of drawing instrument. ASAPPPP which of the following statements about blood alcohol concentration (BAC) are true?A. its illegal for a driver under 21 years of age of to drive with a BAC of 0.02% or aboveB. it is illegal for a driver at any age to drive with a BAC of 0.08% or above C. Both A and B are true D. Neither A or B Confucius taught that parents and children should cooperate and have equal power in their relationship. a. True b. False