7. Write a python program to get the following output.
1-----99
2-----98
3-----97
. .
. .
. .
98-----2
99-----1
whats is the code of this question

Answers

Answer 1

Answer:

for i in range(1,100):

print(f"{i}-----{100 - i}")

OR:

for i in range(1,100):

print(str(i)+"-----"+str(100 - i)")

Explanation:

First off, we can see that the program starts off with an iteration of 1 and ends at 100. So we use this loop code to begin:

for i in range(1,100):

Then, we use this code to print the pattern (make sure to indent this):

print(str(i)+"-----"+str(100 - i)")

We can also use f-strings as a better and cleaner alternative (make sure to indent this too):

print(f"{i}-----{100 - i}")

This code will get us the output shown in the question.


Related Questions

Jobs with only 7 letters

Answers

Answer:

nursing

Explanation:

it's needs 20 words so don't mind thisssss part hehe

Answer: Teacher!!!!!!

The cutting tool that has a zig zag edge is called a?

Answers

The cutting tool that has a zig zag edge is called “Pinking shears “

Which of these conclusions supports the fact that Eclipse is categorized as an IDE?


The user cannot use cheat sheets because it is frowned upon.

The user must get used to a proprietary and unique menu system.

The user must specify the programming language he or she wants to use.

The user must have a high level of expertise before quality results can be obtained.

Answers

Answer:

The user must specify the programming language he or she wants to use.

Explanation:

Which equipment is a standalone recorder?

Answers

Answer:

i think its Pro tool

Hopes it helps you

Which of the following characterizes how an enabled security program might react to a new program installation on a computer system?


It might alert you to space requirement excesses.

It might report an error or tell you that the file is corrupted.

It might protect the new installation from getting viruses.

It might automatically set a restore point for the computer system.

Answers

Answer:

It might automatically set a restore point for the computer system

Answer:

It might report an error or tell you that the file is corrupted.

Explanation:

in a swap you need a variable so that one of the values is not lost ? Need help

Answers

Answer:

In a swap, the variable is cuttly.x

Explanation:

Answer:

temp

Explanation:

a worldwide system of computer network​

Answers

Answer:

The internet is a worldwide system of computer network.

Write a function charInWord that takes in two parameters, a char (character) and a word (string). The program will return true if the character is in the word and false if it is not. If word is not a string type, or if char is not a string type, or if the length of char is greater than 1, the function should return None. Your main program should call the function and print char is in word if the function returns true, or char is not in word if the function returns false, using the user-supplied values instead of char and word. The program should print incorrect input provided if the function returns None. Ex: If the input is: a cat the output is: a is in cat Ex: If the input is: a club the output is: a is not in club Ex: If the input is: ab horse the output is:

Answers

Answer:

The program in Python, is as follows:

def charInWord(chr,word):

   if len(chr)>1:

       print("None")

   elif not(chr.isalpha() and word.isalpha()):

       print("None")

   else:

       if word.find(chr) == -1:

           print(chr+" is not in "+word)

       else:

           print(chr+" is in "+word)

chr = input("Character: ")

word = input("Word: ")

print(charInWord(chr,word))

Explanation:

This defines the function

def charInWord(chr,word):

This checks if the length of character is greater than 1

   if len(chr)>1:

If yes, it prints None

       print("None")

This checks if the character or the word contains invalid character

   elif not(chr.isalpha() and word.isalpha()):

If yes, it prints None

       print("None")

This is executed for valid parameters

   else:

If the character is not present, this is executed

       if word.find(chr) == -1:

           print(chr+" is not in "+word)

If the character is present, this is executed

       else:

           print(chr+" is in "+word)

The main begins here

This gets the character

chr = input("Character: ")

This gets the word

word = input("Word: ")

This calls the method and prints the required output

print(charInWord(chr,word))

What are examples of Table Tools options that can help edit data?

Answers

Answer:

1 - change views

2 - change fonts

3 - add controls

4 - insert rows and columns

5 - add existing fields

6 - change margins

7 - view the property sheet

8 - change padding

Answer:

properties

add and delete

before change

Explanation:

What is the most likely reason a user would export data with the formatting in place?

A) The fields will not have any errors.

B) The file will be much easier to read.

C) The file is automatically spellchecked.

D) The columns are automatically alphabetized.

Answers

Answer:

its d

Explanation:

Answer:

its b on edge

Explanation:

believe me if youre a viber

Question 4
1 pts
Consider the following procedure called square that is meant to multiply a number by
itself and return the value.
PROCEDURE square number
Missing Instructions
RETURN squared
What should go in place of missing Instructions in order to make this procedure work as
intended?
number
number * number
O squared
number + 2
O squared - number number
O square - number number

Answers

Answer: squared ← number * number

Explanation:

Which steps will import data from an Excel workbook? Use the drop-down menus to complete them.
1. Open the database.
2. Click the *BLANK*
tab.
3. In the import & Link group, click *BLANK*
4. Click *BLANK* to locate a file.
5. Navigate to and open the file to import.
6. Select the Import option.
7. Click OK.
8. Follow the instructions in the wizard to import the object.

Answers

Answer:

what are the blank options

Answer:

The answer is

1. External Data

2. Excel

3. Browse

Explanation:

EDGE 2021

What are the uses of an interface in encapsulation?

Answers

Answer:

As you can see in the above examples, encapsulation is implemented in Java using interfaces, classes, access modifiers, setters and getters. A class or an interface encapsulates essential features of an object. Access modifiers (private, public, protected) restrict access to data at different levels. I don't know If this helps

Ans: As you can see in the above examples, encapsulation is implemented in Java using interfaces, classes, access modifiers, setters and getters. A class or an interface encapsulates essential features of an object. Access modifiers (private, public, protected) restrict access to data at different levels.

What is the diagram of a combination circuit that accepts a 3 bit number and generates an output binary number equal to the square of input number?​

Answers

Answer:

see picture

Explanation:

Disclaimer: I didn't design this; I found it.

Search for "3 bit square circuit".

From the practice directory, you wish to capture a listing of files and directories to a file in your user2 directory, thus allowing you to keep track of what is in your user2 directory. What command would you use to redirect the output of a long listing of all files and directories under user2 directory and save the result to a new output file called homedir.list which is under the practice directory

Answers

Answer:

variable(s) determine the amount of potential energy an object has?

Explanation:

Select the correct statement(s) regarding direct sequence spread spectrum (DSSS) and orthogonal frequency division multiplexing (OFDM).
a. OFDM is not classified as a spread spectrum technique, although OFDM has the effect of spreading the signal over a larger frequency spectrum
b. OFDM has greater spectral efficiency compared to DSSS
c. DSSS relies upon a PN code that is only shared by the transmitter and receiver pair
d. all statements are correct

Answers

Answer:

a. OFDM is not classified as a spread spectrum technique, although OFDM has the effect of spreading the signal over a larger frequency spectrum.

Explanation:

Orthogonal Frequency Division Multiplexing is a technique in which large digital data is sent over radio waves by splitting it into multiple subcarriers. The data is then transmitted to different users who can access the files. OFDM is not a spread spectrum technique, it is based on large frequency spectrum.

Use the drop-down menus to match each description to the correct term.

Has records and fields:
Has columns and rows:
Enables a user to interact with a database without working directly with data:
Works like a dialog box:
An interface that makes it easier for inputting data into a database:
Enables you to search several tables for data:

Answers

The application software Cermine is used to record data, query the database to find specified data, format the display of a database object, and search for data entry. Other part of the question is discussed below:

What are the perfect match of the given words?

Application Software Cermine: Matching the items with the best options

To answer this question, you need to match each description on the left with the corresponding item on the right:

The first description is "A collection of records" which matches with "record".

The second description is "A data retrieval tool that finds specified data within a database" and this matches with "query".

The third description is "The display format that you choose when working with a database object on the screen" and this matches with "form".

The fourth description is "All of the fields for a single database entity" and this matches with "record".

The last description is "A data entry tool you use to input data into a database" and this matches with "Search".

Therefore, The application software Cermine is used to record data, query the database to find specified data, format the display of a database object, and search for data entry.

Learn more about Programming:

brainly.com/question/23275071

#SPJ3

Roman numbers. Write a program that converts a positive integer into the Roman number system. The Roman number system has digits

I=1
V=5
X=10
L=50
C=100
D=500
M=1,000

Numbers are formed according to the following rules. (1) Only numbers up to 3,999 are represented. (2) As in the decimal system, the thousands, hundred, tens, and ones are expressed separately. (3) The numbers 1 to 9 are expressed as

I=1
II=2
III=3
IV=4
V=5
VI=6
VII=7
VIII=8
IX=9

As you can see, a I preceding a V or X is subtracted from the value, and you can never have more than three I's in a row. (4) Tens and hundreds are done the same way, except that the letters X, L, C and C, D, M are used instead of I, V, X, respectively.

Your program should take an input, such as 1978, and convert it to Roman numerals, MCMLXXVIII.

Answers

Answer:

The program in Python is as follows:

def Conversion(num):

   digitint = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4,1]

   digitroman = ["M", "CM", "D", "CD","C", "XC", "L", "XL","X", "IX", "V", "IV","I"]

   roman_num = ''

   i = 0

   while  num > 0:

       for _ in range(num // digitint[i]):

           roman_num += digitroman[i]

           num -= digitint[i]

       i+=1

   return roman_num

num = int(input("Enter number: "))

if num > 3999 or num < 0:

   print("Out of range")

else:

   print(Conversion(num))

Explanation:

See attachment for full program where I use comments to explain each line

Please help. 10 points
Question # 1
File Upload
Submit your newsletter that includes the following:

two or three columns
a title
at least three graphics, but not more than six

Answers

Answer:

God Is Good He Will Always Help You He Is Good And Always Good!!

If God Is For Us Who Can Be Against us?? Romans 8:31

Explanation:

Sorry im late. Hope I helped.

I will be doing the biography report.  

The Biography and Life of Henry Ford.

Column One: Who was Henry Ford?

Henry Ford was the founder of Ford Motor Company and also the mass producer of the automobile. Henry Ford was born in 1863. At the age of 16, he worked as a machinist apprentice. Later, Henry began to work the family farm while still working on creating steam engines. Henry had a big interest in steam engines, which would later contribute to him building his first working automobile.

Column Two: How did Henry Ford contribute to our society?

After marrying in 1888, Ford was hired to work for Edison Illuminating Company. His position was an engineer, and Ford began to accelerate his position in the company quickly. After a while, Ford created his first operating vehicle. This was called the "Quadricycle." Ford wanted to improve on his models, so he founded the Company Ford with others. Ford then began to develop methods of mass-producing automobiles to sell to the public. After success in business, he bought the whole company and owned it all by himself. Ford began to mass-produce automobiles. It is said that " The mass production techniques Henry Ford championed eventually allowed Ford Motor Company to turn out one Model T every 24 seconds." Ford passed away in 1945. He decided to give ownership to his son Edsel Ford before he died, but Edsel sadly died before Henry Ford. The Ford company's ownership was given to Ford's grandson, Henry Ford II.

Three Graphics:

PLEASE SOMEONE ANSWER THIS
If the old code to a passcode was 1147, and someone changed it, what would the new code be?

(I already tried 4117)



[I forgot my screen time passcode please someone help I literally can’t do anything on my phone.]

Answers

Answer:

Any of these?

Explanation:

1147. 4117. 7411

1471. 4171

1714. 4711

1741. 7114

1417. 7141

Answer:

1417

Explanation:

Brainly not working for me not showing any ads or answers

Answers

Answer:

oof, try reloading the page?

Explanation:

Answer:

You should try logging in out your account

Lena is completing her senior year of college and is living in an apartment with three friends. Her family has a subscription to HBO Go, and Lisa is able to use the log-on ID and password while she’s at college. Lena does not have cable TV or satellite TV as she typically streams shows or movies that are available online for free or through HBO Go. Several of Lena’s friends don’t have a subscription to Hulu, so Lena has given them her log-on ID and password so they can watch their shows. She doesn’t mind sharing the HBO Go subscription with her friends—what could it hurt? She has heard that the entertainment industry and HBO Go are upset over people sharing their subscription to the streaming services in this way. Lena’s sharing of her family’s HBO Go subscription is an example of:________
a) streaming piracy
b) illegal sharing
c) consumer copying
d) consumer misbehavior
e) digital stealing

Answers

Answer:

d) consumer misbehavior

Explanation:

This is an example of consumer misbehavior. What Lena is doing is not technically piracy or illegal because HBO has created the family feature on their accounts for the account to be used by multiple people at the same time. Yet, the feature was not intended to be used by individuals that are not technically family or even under the same roof. Therefore, what Lena is doing goes against HBO's reason for this feature and sharing the account as Lena is doing is ultimately hurting HBO's streaming service.

Define the Database ​

Answers

A structured base in a computer

What is the best way to improve an online search?
O use detailed keywords
O use a single keyword
O avoid keywords
O re-order the keywords

Answers

Answer: i think it’s A, i’m not sure. i’m still stuck on my own

Explanation:

Answer:

I would suggest:

A.

Explanation:

the more specific you are, the better results you would get.

what is memory address map​

Answers

the mapping between loaded executable or library files and memory regions, these are used for resolving memory addresses

Rupesh wants to try programming with Eclipse. What is the first step he should take to make that happen?


download the Eclipse IDE

download the current Java Development Kit

create a restore point

disable his security program

Answers

Answer:

create a restore point

Explanation:

asnwer the question 1 name the different kinds of slide views present in power point​ (plz give me answer of this q plzz

Answers

Answer:

1. Slide Sorter.

2. Notes Page.

3. Reading Pane.

4. Presenter view.

Explanation:

PowerPoint application can be defined as a software application or program designed and developed by Microsoft, to avail users the ability to create various slides containing textual and multimedia informations that can be used during a presentation.

Some of the features available on Microsoft PowerPoint are narrations, transition effects, custom slideshows, animation effects, formatting options etc.

Slide transition is an inbuilt feature of a presentation software that automatically changes the slides at regular intervals.

Basically, the different kinds of slide views present in Microsoft PowerPoint application includes;

1. Slide Sorter.

2. Notes Page.

3. Reading Pane.

4. Presenter view.

Presenter view avails the user an ability to use two monitors to display his or her presentation. Thus, one of the monitors displays the notes-free presentation to your audience while the other monitor lets you view the presentation with notes that you have added to the slides, as well as the navigation and presentation tools.

1. Mrs. Bautista has a bank balance of -42 dollars at the start of the month. After she
deposits 6 dollars, what is the new balance?​

Answers

Answer:

- 36

Explanation:

-42 + 6 = -36

Mrs. Bautista is kinda broke

what is convergence ​

Answers

Answer:

the process or state of converging.

Explanation:

Answer:

the fact that two or more things, ideas, etc. become similar or come together.

Suppose you have a sentineled, doubly-linked list class as specified in project 2 and an object of that class called my_list. The function below finds and returns the first index of a specified value in that list, but portions have been removed. Using the minimum possible spacing at all in your answers, fill in the missing code. This algorithm does not employ the __iter__ and __next__ methods of the Linked_List class. Also note that this exercise does not include the object names, so your answers should include my_list. as appropriate. Finally, none of your responses should contain colons. As a reminder, the linked list implementation provides the following methods: insert_element_at(value, index) #cannot be used to append
append_element(value)
get_element_at(index)
remove_element_at(index)
__len__ #support for the len method to obtain the list's size
def index_of(my_list, val):
for k in :
if :
raise ValueError
and what is the performance?

Answers

Answer:

def index_of (my_list, val):

  for k in range(my_list.__len__):

      if my_list.get_element_at(k) == val :  

          return k

Explanation:

The python function "index_of" accepts two arguments, a list and the value to be searched for.

The for-loop iterates over the list using the "__len__" magic method to return the index of the searched term in the list if present.

Other Questions
Help me please thank you 2. An object's weight is proportional to its _ or _ from another object What is a quality that Peter and Anne both share? a Diary of a young girl Simplify the following expression. Find the common ratio of the geometric sequence .12,84,588,... 3.16 SAT scores: SAT scores (out of 2400) are distributed normally with a mean of 1490 and a standard deviation of 295. Suppose a school council awards a certificate of excellence to all students who score at least 1900 on the SAT, and suppose we pick one of the recognized students at random. What is the probability this student's score will be at least 2100 -12 (-5/6) (-2/15) How do I solve this question I am stuck on an assignment Urbanization, the growth of cities, primarily took place in the North because-A. people in the North were wealthy enough to afford housing in the citiesB. under the Urban Law of 1828, citizens living in cities paid less taxesC. the weather in the North was too harsh for people to live in rural areasD. more people in the North took jobs in factories which were in cities (WILL GIVE BRAINLIEST) "I'm hungry", said Tess. She spooned up what remained in the bowl but barely tasted it. After she finished the soup, she ate the grilled cheese, chewing methodically, like a goat. The author compares - Select one:grilled cheese to a goatSoup to grilled cheeseTess to a goat Who ya'll fav rapper?Mine Megan thee stallion AYEEEEEEEEEEEEEE 7n-3y if n= 6 and y = 2 Du it todayStrange weapons of world war IThe First World War, was the first war in which the industrial revolution significantly contributed to the modernization of warfare. Weapons of war could now be made on a mass scale because of the development of factories and assembly lines. Also, new technologies could be adapted and applied to make advanced weaponry that could cause massive casualties. For instance, the plane would become the perfect technology used to drop bombs. The industrialization and modernization of weapons made it easier for the Allies and Central Powers to kill. Hence, WWI become known as one of the bloodiest wars of all time. The total number of military and civilian casualties in World War I was more than 38 million; there were over 17 million deaths and 20 million wounded. Interestingly, early in the war, the Allies and Central Powers would both be forced to dig trenches in order to avoid being killed by new weapons of war and be over taken. Hundreds of miles of trenches stretched across the frontlines. Trench warfare would become a way of life for both sides as well as a key defensive strategy. The use of trenches would also cause a stalemate in the war where both sides struggled to make progress in the war. The use of trenches in the war would lead to designers and military engineers to develop many strange weapons and contraptions in an effort to gain an advantage in the war. Brewster Body Shield. Was the first effective body armor developed for U.S. Army in WWIAnswer each question with a complete sentence1. What contributed to the modernization of war in WWI? 2. What allowed for the mass production of weapons in WWI? 3. What did industrialization and modernization make it easier for both sides to do? 4. How many people were killed and wounded in WWI? 5. What were both sides forced to do in order to avoid being killed and overtaken? 6. What would the use of trenches in WWI lead to the designing and development of? Gomez runs a small pottery firm. He hires one helper at $11,000 per year, pays annual rent of $6,000 for his shop, and spends $22,000 per year on materials. He has $40,000 of his own funds invested in equipment (pottery wheels, kilns, and so forth) that could earn him $4,500 per year if alternatively invested. He has been offered $17,000 per year to work as a potter for a competitor. He estimates his entrepreneurial talents are worth $3,500 per year. Total annual revenue from pottery sales is $70,000. Calculate the accounting profit and the economic profit for Gomezs pottery firm. A murder trial has ended in a hung jury with six jurors for and two jurors against the conviction of the defendant. The presiding judge at the trial directs the jury into seclusion once more, asking the dissenters to reconsider the opinion of the majority of jurors so that a unanimous decision can be made. In this scenario, the presiding judge has invoked the _____. What is the equation of the line on the graph?i need help Find the mass of 1.59 mol of NH3 write pragraph describing types of weather What does frozen seas mean in a poemO pathwayO stillnessO coldnessO water The main military goal of Philip II of Macedonia was to ______.conquer romedefeat the persian empiredestroy every greek city stateconquer egypt These clouds appear fibrous or curly. They are high, thin, white, feathery clouds made of ice crystals. They are associated with fair weather, but they can indicate approaching storms too. Which type of cloud is this?