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
Elanso [62]
2 years ago
9

Write a function named ilovepython that prints out I love Python three times. Then, call that function.

Computers and Technology
1 answer:
Brums [2.3K]2 years ago
8 0

Answer:

The program to this question can be described as follows:

Program:

def ilovepython(): #defining a method

   for i in range(3): #defining a loop that print messasge three times

       print('I love Python')#print messasge

ilovepython() #calling the method

Output:

I love Python

I love Python

I love Python

Explanation:

Description of the python program can be described as follows:

  • In the above Python program, a method "ilovepython" is defined, inside the method a for loop is used, inside the loop print method is used, that print the message "I love Python".
  • In python for loop is used to iterate over series and we can execute a set of statements with the loop, tuple, series, once for each element in the list.
You might be interested in
6.10.1: Modify a C string parameter. Complete the function to replace any period by an exclamation point. Ex: "Hello. I'm Miley.
Andrej [43]

Answer:

#include <iostream>

#include <cstring>

using namespace std;

void replacePeriod(char* phrase) {

int i = 0;

while(*(phrase + i) != '\0')

{

if(*(phrase + i) == '.')

*(phrase + i) = '!';

i++;

}

}

int main() {

const int STRING_SIZE = 50;

char sentence[STRING_SIZE];

strcpy(sentence, "Hello. I'm Miley. Nice to meet you.");

replacePeriod(sentence);

cout << "Updated sentence: " << endl;

cout << sentence << endl;

return 0;

}

Explanation:

  • Create a function called replacePeriod that takes a pointer of type char as a parameter.
  • Loop through the end of phrase, check if phrase has a period and then replace it with a sign of exclamation.
  • Inside the main function, define the sentence and pass it as an argument to the replacePeriod function.
  • Finally display the updated sentence.
6 0
3 years ago
You approach a railroad crossing with a cross buck sign that has no lights or gates. What should you do?
dalvyx [7]
You should or must stop 50 feet away from it.
8 0
3 years ago
Read 2 more answers
Drag the tiles to the correct boxes to complete the pairs.
jek_recluse [69]

Answer:

1. Multistage database.

2. Stationary database.

3. Virtual database.

4. Distributed database.

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

There are four (4) major types of database in a data warehouse and these are;

1. <u>Multistage database</u>: used for concise as well as detailed historical data. It provides summarized data which can be used by an employee for short-term decision making.

2. <u>Stationary database</u>: used where access to data is rare i.e business firms who do not access data frequently. In order to use this database, the users must have an access to metadata store and thus, directly having access to the data on a source system.

3. <u>Virtual database</u>: used for accessing data in diverse applications using middleware. This type of database is dependent on having access to information on various databases.

4. <u>Distributed database</u>: used by an organization that runs several businesses. Therefore, this type of database are usually located or situated in various geographical regions.

5 0
2 years ago
1st person to answer gets brainliest for free after 5 mins I wont be handing out brainliest
Dmitry [639]
What do we answer with?
7 0
3 years ago
What is the correct term for files copied to a secondary location for preservation purposes?.
Volgvan

The correct term for files copied to a secondary location for preservation purposes is backup.

<h3>What is a Backup?</h3>

This refers to the movement of files from one location to another for storage purposes.

Hence, we can see that this is done in order to preserve the files so that should the first memory location get compromised, it can be easily retrieved and this helps to prevent data loss.

Read more about backups here:

brainly.com/question/27960592

#SPJ1

3 0
2 years ago
Other questions:
  • Carolyn owns a small business that designs air conditioning units for large buildings. A construction company that's building an
    13·1 answer
  • A typical broadcast live events and use streaming technology in which audio and video files are continuously downloaded to your
    12·1 answer
  • Criminal Investigation people called my house on an automated voice is this a scam ??
    13·1 answer
  • System requirements that are important in determining if a software program will work on a computer are ____.
    8·1 answer
  • If you are driving at night, you should not use high-beam headlights within _________ of oncoming vehicles. Florida Road Rules 4
    9·2 answers
  • Does the brain play a role in smartphone addiction
    7·2 answers
  • Which type of password would be considered secure
    5·2 answers
  • Where is the "delete account" button in my profile? And please give me a legit answer and not just a word.
    10·2 answers
  • What is the function of a breadcrumb trail in a website ?
    10·2 answers
  • From Blown to Bits why is it important to know what children are doing on the Web Tonight?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!