Write a program that reads two integers, checks if a digit repeats 3 times in a row in the first integer and that same digit repeats two times in a row in the second integer.

Answers

Answer 1

Answer:

first_num = input("Enter integer digits (should be four or more digits): ")

sec_num = input("Enter integer digits (should be four or more digits): ")

num = '3'

if

def count_check( digit):

   if (digit * 3) in first_num and (digit * 2) in sec_num:

       print(True)

   else:

       print(False)

count_check(num)

Explanation:

The python source code above receives two values assigned to variables "first_num" and "sec_num" and defines a function called count_check to check if a digit occurs three consecutive times in the first input and two in the second to print a value of true or false otherwise.


Related Questions

can some one help me i do not now how to give a BRANLEST. if you help i will give you one BRANLEST.

Answers

Answer:

check your questions on your profile ✨

Answer:

Once there are two answers to your question, you look at them, and in the bottom right corner, you will see a crown press that good luck! :D

Joann wants to save the building block she created for the title of her company.

In which file does she save this building block?

Answers

Answer:

Building Blocks.dotx

Explanation:

Just did it on Edge2020

what is the computer?​

Answers

Answer:

an electronic machine that can store, find and

Ryo currently earns a monthly salary of $2200. She has been offered a raise of $250 per month. How much more will she earn per year at her new salary?

Answers

Answer:

$3,000 more per year

Explanation:

Since the difference between her old salary and her new salary is $250 per month, then we can simply multiply this amount by the 12 months in a year in order to calculate how much more she will be earning per year on her new salary...

$250 * 12 = $3,000

Therefore, we can see that Ryo will be earning an extra $3,000 more per year with her new raise when compared to her old salary.

what is the importance of planning before you start your vegetable farm business?

Answers

Answer with Explanation:

"Planning" plays a crucial role before starting any business. If you've decided to start a vegetable farm business, then you better plan ahead.

Vegetables are "perishable," which means it is easy for them to get spoiled. Thus, you have to consider many things such as: what kind of crops to sell, where to sell them, what season you're going to sell them and how much you are going to sell them.

Choosing the kind of crop depends on whether you'll be requiring intensive labor or not. Although the former means more profit, it will require more capital. Knowing your target market is essential. For example, if your target are health-conscious people, then you have to go for organic vegetables. Determining the season to sell the vegetables will allow you to price them accordingly. Lastly, you have to know how much you're going to sell your vegetables in order for you to have an idea of the profit you're going to make. This will also allow you to budget your money.

Comments should:
a) give the reader the background of the programmer.
b) be written for every line of code.
c) communicate the purpose of the code that follows it.
d) give information about how many hours it took to write the code.

Answers

Option C is correct............

Answer:

c.

Explanation:

Which function is used to add a range of cells? =SUM =AVERAGE =MAX =ADD

Answers

Answer:

=SUM

Explanation:

The function used to add a range of cells is =SUM. Thus, option A is correct.

What is a function in excel?

Functions are pre-written formulas that carry out calculations by utilising unique values, referred to as inputs, in a given order, or layout. Calculations of any complex variable can be carried out using functions. the purpose for which a human, thing, or both are created, expressly designed, or employed.

Values are added by the SUM function. Users can include specific values, cell references, specific ranges, or a combination of all three. F

Excel's AutoSum feature makes summing up several items in an quick and simple manner. The Alt+= button makes using the AutoSum command much quicker. It can be found on the Homepage or Formulas tabs.

Therefore, option A is the correct option.

Learn more about Functions , here:

https://brainly.com/question/21145944

#SPJ6

colour statement is used for setting .................... and .................. colors​
(a) screen,Paint (b) line,circle
(c) foregroung,Background
(d) none of these

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is C. i,e, foreground, and background.

First, we need to know what is a color statement.

The purpose of the color statement is to select display colors. It is used to select the foreground and background colors of the display.

So, the correct answer is :

Colour statement is used for setting foreground and background colors.

In general, it allows you to select foreground and background colors for a display. You can use different codes to display and see the effect of the color statement.  

While other options are not correct, because the color statement used to select foreground and background color for the display. It does not use for setting screen and paint color in it. It also does not use for drawing lines and circles etc.

which gallery will allow a user to access a variety of preconfigured formatting styles for images that are added to a PowerPoint presentation

Answers

Answer:

Picture Effects gallery.

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.

To format an image on PowerPoint, you can either use the Artistic Effects or Picture Effects.

The Picture Effects gallery allows a user to access a variety of preconfigured formatting styles for images that are added to a PowerPoint presentation.

Basically, the Picture Effects consist of the following preconfigured formatting styles; transparent shadow, soft edge, reflection, glow, 3-D rotation, metal frame, bevels, perspectives etc.

Answer: Picture Styles gallery

Explanation: He is correct he just typed it wrong.

CORRECT ANSWER GETS BRAINLIEST!!!
Which area of engineering focuses on the study of materials, products, and structures that may cause injury or damage?
forensic engineering
mechanical engineering
biomedical engineering
materials engineering

Answers

Answer:

Forensic engineering

Explanation:

Forensic engineering matches the definition of "a area of engineering that focuses on the study of materials, products, and structures that may cause injury or damage"

A group of friends go on a holiday to the mountains. On the trip, they take a lot of pictures. One of the friends uploads the pictures on his blog. Which image format is best for uploading photos? The image format is best for uploading photos.

Answers

Answer: PNG

Explanation:

PNG stands for Portable Network Graphics, with so-called “lossless” compression.

A group of friends goes on a holiday to the mountains. The image form that is best for uploading photos is PNG. The correct option is B.

What is the PNG format of the image?

To display high-quality digital images, websites frequently use the PNG file format. PNGs, which were developed to outperform GIF files, provide not just lossless compression but also a significantly wider and brighter color spectrum.

Raster image files come in both JPEG and PNG varieties. This indicates that they are composed of a set number of color pixels.

To display high-quality digital images, websites frequently use the PNG file format. PNGs, which were developed to outperform GIF files, provide not just lossless compression but also a significantly wider and brighter color spectrum.

Therefore, the correct option is B. PNG.

To learn more about the PNG format, refer to the link:

https://brainly.com/question/20293277

#SPJ2

The question is incomplete. Your most probably complete question is given below:

PNG

JPG
JPEG

GIF

Guys im getting the ps5 tomorrow :)​

Answers

Answer:

Congrats.

Probably will be better than the Xbox minifridge

what is the main difference between a search bar and a web browser

Answers

Answer:

i think a search is search bar is looking for application and files that are in the system while web browser is for searching things that are not in ur pc or laptop but searching thing i a good example google

Select all actions you should take to check for mistakes in your formulas.

1. Check that you entered the correct data.
2. Look to see that you used the correct cell names.
3. Recalculate everything using a calculator.
4. Run a formula checker.
5. Make sure you have followed the correct order of operations.
6. Check that you used the correct operations.
7. Estimate the answer and compare to the actual answer.

Answers

Answer:

The correct options is;

Run a formula checker

Explanation:

In order to check if there are mistakes in a formula, the Error Checking dialogue box which is a tool that enables a user to rapidly detect and correct errors in formulas, can be made use of to both simplify, expedite, and streamline the process

The Error Checking dialogue box has the following commands controls;

Help on This Error; The control button brings up the help window in Microsoft Excel

Show Calculation Steps; The control starts the Evaluate Formula dialog box from which the effect of the data input values, operators and result of each step can be seen

Ignore Error; The button allows an error to be ignored

Edit in Formula Bar; Allows for the input into the formula in the Formula Bar which is much easier than editing the formula in the cell

Options; The command allows the user to view the Microsoft Excel dialog box menu

Answer:

Run a formula checker. ✔

Check that you used the correct operations. ✔

Check that you entered the correct data. ✔

Explanation:

Got it right on Edge 2022.

Which view would you need to use to make changes to the design theme for the entire presentation?

Answers

Apply a theme to your presentation

Open your presentation.

On the Design tab, you'll find design themes in the Themes group.

To preview how the current slide would look with a particular theme applied, rest your pointer over the thumbnail image of that theme.

To view more themes, on the Design tab, in the Themes group, click More More button at the right end of the gallery.

To select and apply a theme, click the thumbnail image of that theme.

Unless you specify otherwise, PowerPoint applies the theme you select to the entire presentation.

To apply a theme to only one or a few slides, select the slide or slides, right-click the theme you want, and select Apply to Selected Slides.

Answer:

slide master

Explanation:

the answer on edge2020

Arrange the numbers 4, 8, 2, 6, 3, 5, 0, 1 into ascending order using the Merge sort algorithm

Answers

Answer:

1 2 3 4 5 6 you are missing seven the 8

Explanation:

I need help pleaseeeee!!!

Answers

Answer:

True

Explanation:

Integrated Services Digital Network (ISDN) is a set of communication standards for simultaneous digital transmission of voice, video, data, and other network services over the traditional circuits of the public switched telephone network.

Pleaseee mark me as brainliest

Hope this help <3

Question # 4
Multiple Choice
How do you stop a program that is stuck in an infinite loop?

Press the Alt key together with the Q key.

Press the Control key together with the C key.

Press the Control key together with the Q key.

Press the Alt key together with the C key.

Answers

Answer:Control +c

Explanation:yes

Answer: Press the Control key together with the C key.

Explanation: Correct on Edg 2020/2021.

In a networking context, "architecture" refers to
a. the building that houses the network
b. design
c. the hardware
d. a well-built network

Answers

Answer:

A well built netwrk

Explanation:

Why is it important to turn a filter off when you have found what you are looking for?

A. The items the filter finds will be deleted from Outlook,
B. The filter will keep looking for items based on the criteria.
C. The filter only works in the background when it is turned off
D. The items that were filtered out, including new items, are not visible,

Answers

I think it’s D

Hope it helps :)

Answer:

D -- The items that were filtered out, including new items, are not visible.

Explanation:

Just took the test, hope this helps! :)

Place the steps in order for placing a section break

Answers

Answer:

choose a break option, select breaks, click the layout tab, change the formatting style, and position the cursor

Explanation:

i could be wrong cause i dont know what its about but this is what makes sense to me

Answer:

position the cursor click the layout tab select breaks choose a break option change the formatting style

Explanation:

Just had this question

How do you code a website?

Answers

Answer:

Learn the basics of HTML.

Understand HTML document structure.

Get to know CSS selectors.

Put a CSS stylesheet together.

Get Bootstrap.

Pick a design.

Customize your website with HTML and CSS.

Add content and images.

Explanation:

, , ,g d,t ,dt m,dt ymtd

Answers

Answer:ummm me confused

Explanation:

AI structure question. Please help
Type the correct answer in the box. Spell all words correctly.


On what structure is an artificial neural network based?


An artificial neural network is based on interconnected _______.

Answers

Answer:

A). An ANN is based on a collection of connected units or nodes called artificial neurons, which loosely model the neurons in a biological brain. Each connection, like the synapses in a biological brain, can transmit a signal to other neurons.

B). Understanding an Artificial Neural Network (ANN)

Artificial neural networks are built like the human brain, with neuron nodes interconnected like a web. The human brain has hundreds of billions of cells called neurons.

Explanation:

Answer:

The answer to this question is Neurons

Explanation:

I took the test on Plato and got a 100%.

Kerri uses a photo editing program a lot. To increase her productivity, she should_____.


delete it from the Start menu

put it in her My Documents folder

move the program to the desktop

create a shortcut for it on Quick Launch

Answers

Answer:

Move the program to the desktop

Explanation:

It will be easier to access and quicker to open.

(Java) Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write a program that prompts a user for the number of eggs in the order and then display the amount owed with a full explanation using the following wording: You ordered 27 eggs. That’s 2 dozen at $3.25 per dozen and 3 loose eggs at 45 cents each for a total of $7.85.

import java.util.Scanner;
class Eggs {
public static void main(String[] args) {
// Write your code here

}
}​

Answers

import java.util.Scanner;

public class Eggs {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("How many eggs?");

       int eggs = scan.nextInt();

       int dozens = eggs / 12, ind = eggs - (dozens*12);

       

       System.out.println("You ordered "+eggs+" eggs. That's "+dozens+" at $3.25 per dozen and "+ind+" loose eggs at 45 cents each for a total of $"+((dozens*3.25)+(ind*0.45))+".");

   }

   

}

I hope this helps!

In this exercise we have to use the knowledge of the JAVA language to write the code, so we have to:

The code is in the attached photo.

So to make it easier the JAVA code can be found at:

import java.util.Scanner;

public class Eggs {

  public static void main(String[] args) {

      Scanner scan = new Scanner(System.in);

      System.out.println("How many eggs?");

      int eggs = scan.nextInt();

      int dozens = eggs / 12, ind = eggs - (dozens*12);

System.out.println("You ordered "+eggs+" eggs. That's "+dozens+" at $3.25 per dozen and "+ind+" loose eggs at 45 cents each for a total of $"+((dozens*3.25)+(ind*0.45))+".");

  }

}

See more about JAVA at brainly.com/question/2266606

Your company works with organizations located in other countries. What is this an example of

Answers

Answer:

Globalization

Explanation:

When other countries work with other firms, international trade which is on a global scale is taken into consideration, allowing goods and services to trade between each other.

Answer:

Globalization

Explanation:

SOMEONE PLEASE HELP ME WITH THIS !!!!

Answers

I feel it is C, but I am not sure if it is correct, I can only apologize if it is wrong.

The shooting(blank) should describe a daily plan of the shoot and should include everything from the crew to wrap-up.

Answers

Answer:

schedule

Explanation:

Indeed, in almost every video production a shooting schedule is used to describe the daily plan of the shoot; such as what scenes to shoot first, and next.

It also gives details about the crew, as well as the timeline for the entire film production, and so on.

An archiving department is responsible for issuing permissions for use of historical film footage.

Answers

Answer:

true

Explanation:

just finished the assignment.

Other Questions
In that same paragraph, the author writes that The U.S, committed to containing the spread of Communism, backed the French. In this context, what do the two italicized words mean? How do those words help you understand what the larger struggle was: who was struggling with whom, over what, and why? Use your editor to open the cc_data.js file and study the data stored in the staff object to become familiar with its contents and structure. Close the file, but do not make any changes to the document. A 7.0 liter balloon at room temperature contains helium gas. if the temperature is halved, what happen to the volume? A continuation of a point is a _____________.squarecircleshapeline These are some of the factors that drive ocean currents.ATides, Water, Gyres, BoatsBFish, Water, Temperature, WavesCGyres, Temperature, Wind, The MoonDPeople, Fish, Water, Wind Mi amigo quiere que yo _____ (hacer) su tarea, pero yo no voy a hacerla. Find the side indicated by the variable. Round to the nearest tenth.PLEASE HELP How do the independent and dependent variables in an experiment compare?.The independent and dependent variables have no effect on each other..The dependent variable controls the independent variables.CThe independent and dependent variables are the exact same as each other.DThe independent variable controls the dependent variables. The movie theater makes $750 in a hour period, how many hours will it take for the theater to make $2575? Which best sums up the costs of the Civil War? It was the most costly war in American history in terms of casualties. It was a relatively minor war compared to other combats in American history. It took the lives of fewer Americans than the wars fought in Europe. It took the lives of more civilians than soldiers. if 28% of the bases in a DNA strand are guanine, what percentage are thymine One baseball team played 36 games throughout their entire season. If this baseball team won 18 of those games, then what percentage of their games did they win? Observe Record the appearance (colors,textures, etc.) of the reactants in the data table.What else can the copper react with? Essay 450 words your sister has gained admission into your former school write a letter giving her information about the school and advise her how to behave well while in the school Bubble Stew..................... Russia or German pick and vote How are islands formed ? Pls help!! Ill give brainlist... :( Refer to the Newsela article PRO/CON: Can Eating Less Meat Cool the Climate?Why does the author of the argument in support of eating less meat think that reducing meat consumption is important?It will improve the welfare of animals used in the food industry.It will improve the overall health of the human population.It will reduce greenhouse gas emissions into the atmosphere.It will reduce the amount of animal feed that must be produced. WHO WOULD WIN IN A FIGHT?A SHAOLIN MONK vs A NAGA SADHU