Ask the user to enter a name. If there is an ‘a’ in the name, print the message saying ‘The name contains at least one ‘a.’ If there is no ‘a’ then print “The name does not contain the letter a.”

Answers

Answer 1

name = input("Enter your name: ")

if "a" in name:

   print("There's at least one 'a'")

else:

   print("The name does not contain the letter a.")

I wrote my code in python 3.8. I hope this helps!


Related Questions

Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be. What kinds of errors does Erin need to fix?
logic errors
database errors
debugging errors
syntax errors

Answers

Answer:

A simple syntax error :)

"A character or string incorrectly placed in a command or instruction that causes a failure in execution."

Good luck! Hope this helped! :D

The kinds of errors does Erin need to fix is a simple syntax error.

What is syntax error?

Syntax is a character or string when incorrectly placed in a command or instruction results in failure while executing.

Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be.

The correct way to remove syntax error is putting colon and semicolon on the right place.

Learn more about syntax error.

https://brainly.com/question/18271225

#SPJ2

Choose the word that matches each definition.
1 - ISP
2 - HTTP
3 -URL

Answers

Answer:

1 - Internet Service Provider

2 - Hypertext Transfer Protocol

3 - Uniform Resource Locator

Explanation:

write some positive and negative impacts of computer in our daily life​

Answers

Positive impacts are
1. Communicating with people
2. Daily update of what going on in the world
3. learn new things
Negative impacts are
1. Viruses
2. Private information shared
3. Less face to face conversations

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:

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.

why are media conductors needed in computer network?​

Answers

Answer:

Transmission media connectors attach directly to the medium itself and serve as the physical interface between cabling and network nodes.

Explanation:

Answer:

masamstha 31 is correct hope it's help you have a good day

What will you see on the next line? >>> int(6.5)

Answers

Answer:

6

Explanation:

The int functions founds down to the nearest whole number, which in this case would be 6.

Answer:

6

Explanation:

Taylor needs to remove the text to the left of his cursor. Which of the following keys should he press?

Answers

Answer:

bacspace not delete

Explanation:

delete erases on the right not left

Backspace he should press to remove the text to the left of his cursor.

What is cursor?

A cursor is an indicator used in computer user interfaces to show the current position for user interaction on a computer monitor or other display device that responds to input from a text input or pointing device. Because of its usage resemblance to a pointing stick, the mouse cursor is also known as a pointer. Cursor is a Latin word that means "runner." The transparent slide engraved with a hairline that is used to mark a point on a slide rule is known as a cursor. By example, the word was later transferred to computers. On November 14, 1963, while attending a computer graphics conference in Reno, Nevada, Douglas Engelbart of the Augmentation Research Center (ARC) expressed his desire to pursue his goal of developing both software and hardware computer technology to "augment" human intelligence by pondering how and where to adapt the underlying principles of the planimeter to inputting X- and Y-coordinate data.

To learn more about cursor
https://brainly.com/question/12406758

#SPJ2

Write a python program to input money in Bahrain dinar and find out number of denominations can be used to make that money.

For example: -
Enter total money in BD: 76
Then the output Should be :
No.of 20 BD : 3
No.of 10 BD : 1
No.of 5 BD : 1
No.of 1 BD : 1

Pls answer fast

Answers

n = int(input("Enter total money in BD: "))

n20 = n//20

n10 = (n-(n20*20))//10

n5 = (n - ((n20*20)+(n10*10)))//5

n1 = (n - ((n20*20)+(n10*10) + (n5*5)))//1

print("No. of 20 BD: "+str(n20))

print("No. of 10 BD: "+str(n10))

print("No. of 5 BD: "+str(n5))

print("No. of 1 BD: "+str(n1))

Answer: There are various ways to earn money online in Bangladesh. Here are some options you can explore:

Freelancing: Freelancing is one of the most popular ways to earn money online in Bangladesh. You can offer your skills and services on various freelance platforms such as Upwork, Fiverr, and Freelancer. You can offer services such as content writing, graphic designing, web development, data entry, and more.

Affiliate marketing: You can earn money by promoting products and services through affiliate marketing. You can join affiliate programs of various companies such as Amazon, Clickbank, and ShareASale and earn commission on the sales made through your unique affiliate link.

What affect did the Scopes trial have on the school curriculum in Tennessee?
It changed the curriculum to include creationism in science classes.
It did not change the curriculum because Bryan died shortly after the trial.
It changed the curriculum to include evolution in science classes.
It did not change the curriculum because Scopes lost the case.

Answers

D)It did not change the curriculum because Scopes lost the case.

The effect that Scopes trial had on the school curriculum in Tennessee is that

It did not change the curriculum because Scopes lost the case.

The Scopes trial

The scopes trial was a trial that involved a high school teacher called Scopes and the government of the United States.

This trial took place at the time where the US was subject to very serious Christian beliefs.

The reason for the trials was that Scopes had taught evolution in the classroom.

Read more on the Scopes trial here:

https://brainly.com/question/874883

import java.util.Scanner;

public class PigLatin {
public static void main(String args[]) {
Scanner console =new Scanner(System.in);
System.out.println("Please enter a word");
String phrase=console.nextLine();

System.out.println(eachWord(phrase));
}

public static String eachWord(String phrase) {
String help[]=phrase.split(" ");

for(int i=0; i
if (help[i].charAt(0) == 'a'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'e'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'i'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'o'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'u'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'A'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'E'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'I'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'O'){
return help[i] + "-ay";
}
if (help[i].charAt(0) == 'U'){
return help[i] + "-ay";
}
else {
return help[i].substring(1)+"-"+help[i].charAt(0)+"ay";
}

}
return "aoujbfgaiubsgasdfasd";
}

I need help with this Pig Latin Program. I want to split the string so each word can run through the method eachWord. I don't know how to revamp this!

Answers

Answer:b

Explanation:

I took quiz

Answer:

uuuuuuuuuuhhm

Explanation:

CODE!

Which of the following is an example of a tax?

cash payment,medicare,rental payment,line of credit

Answers

Medicare because it’s like insurance

(true or false) One of the difficult things about working in game design is that while there are many different roles, most of them only match one specific personality type.
True
False

Answers

Tbh I think it’s False because most of them don’t match
I thinks it’s false cause most don’t match

Which statement about technology before the invention of the printing press is true?

Answers

Answer: See explanation

Explanation:

You didn't give the options to the question and I searched and couldn't find the particular question.

Here, are some of the things about technology before the invention of the printing press.

1. Before printing press, monks copied books such as bibles as they'll copy calligraphy and illustrations in order for them to spread the messages in the Bible across to people.

2. Before printing press, oral communication was the way that people communicated with each other.

3. Drawings and writings were done by hand before printing press.

4. Before the invention of printing press, in order to transcribe books, different materials that were used include wax, parchment, clay and papyrus.

PLEASE HELP ASAP 100 POINTS 2 MORE MINUTES!!!!! :/
Use the (blank) to add a new slide to your presentation.
Slide plane
Standard toolbar
Insert menu
Slide view

Answers

Answer:

Insert Menu

Explanation:

This is what the passage that I read for school said:

In most programs, you can add a new slide from the Insert menu.

The most commonly used auxiliary storage device(s) is/ are _____.
a.
floppies and tapes
b.
a filing cabinet
c.
hard disks and floppies
d.
tapes and hard disks

Answers

Answer: A

Explanation:

Considering there are 2 dictionaries, one with the name of the person and the stock name and number of stocks they have and the other dictionary has the stock name and it’s today’s market value -

Ex: a = { “Joe” :{“AAPL”:5, “AMZN”:2}, ”Bill” :{“AAPL”:2, “AMZN” :5 }}

B = {“AAPL” : 227, “AMZN” :1721 , “NFLX” : 267 , “TSLA” : 244, “FB” : 179 }



Write a Python program to find the amount of money each person makes by selling all of their stock today, and who will get the most value

Answers

a = {"Joe": {"AAPL": 5, "AMZN": 2}, "Bill": {"AAPL": 2, "AMZN": 5}}

B = {"AAPL": 227, "AMZN": 1721, "NFLX": 267, "TSLA": 244, "FB": 179}

total = 0

largest = 0

for x in a:

   for w in a[x]:

       total += a[x][w] * B[w]

   a[x] = total

   if total > largest:

       largest = total

   print("{} will have ${}".format(x, total))

for x in a:

   if a[x] == largest:

       print("{} will get the most value".format(x))

I hope this helps!

How can you continue learning about computer science and improve your coding abilities?

Answers

Answer:

5 Ways to Improve Your Coding and Programming Skills

Take advantage of books and other free resources. ...

Sign up for a bootcamp. ...

Practice, practice, practice. ...

Engage with the computer science community. ...

Pursue a formal education in computer science.

Name any two operating systems you know.

Answers

Answer:

software and hardware

2 operating systems are windows and iOS

Which unit of measurement is used to express the capacity of a servo motor?
A. kg/hr
B. kg/m
C. kg/cm
D. kg/km

Answers

Answer:

C. kg/cm

Explanation:

I just did it

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRIST AND CORRECT
How are blogs and wikis alike?


accessible 24/7

telecommunications technology

collaboration tool

available online

used for online dialog

increase business productivity

Answers

Answer:

accessible 24/7

available online

increase business productivity

telecommunications technology

Blogs and wikis alike because they are:

Accessible 24/7.Available online.Increase business productivity.Telecommunications technology.

What are blogs?

A blog is known to be a short word for  “weblog”. This is known to be a kind of an online journal that is also said to be an informational website where one can get Infor on different subject.

Conclusively, Note that Blogs and wikis alike because they are Accessible 24/7 and one can get any information they want from it to increase  business productivity.

Learn more about Blogs from

https://brainly.com/question/3653791

#SPJ2

If you draw strength from video games, how?

Answers

Answer:

I really dont know

Explanation:

Thank u for the pts tho < :)

Write the code in python to ask the user to input two integers. Your program will then print the greatest common divisor of the two integers. Look at the math module for a function that will help you find the greatest common divisor.

Answers

import math

num1 = int(input("Enter a number: "))

num2 = int(input("Enter a number: "))

print(math.gcd(num1, num2))

The gcd() - greatest common divisor function, which is part of the math module works perfectly in this situation.

convert the decimal number 191 into an binary number

Answers

Answer:

Binary: 10111111

Explanation:

The resistance in a particular kind of circuit is found using this formula: R1(R2)R1+R2.


Assuming all the variables are non-zero, which line of code will find the value of the resistance?


resistance = (R1 * R2) / (R1 + R2)

resistance = R1(R2) / R1 + R2

resistance = R1(R2) / (R1 + R2)

resistance = R1(R2) / (R1 + R2)

Answers

Answer:

resistance = (R1 * R2) / (R1 + R2)

Explanation:

PYTHON doesn't recognize multiplication like this example >> 3(4)

This is why PYTHON uses this symbol (*)

Question # 1
Multiple Select
You already now about some collections. Which of the following is a type of collection in Python? Select 2 options.

group

dataset

ordered set

list

deque

Answers

Answer:dataset

Explanation:

data set because it is kida a set

Answer:

A list, and a deque.

Explanation:

Why am i right? Because i am.. TRUST ME ITS RIGHT YW EVERYONE! :3

4.9 Code Practice: Question 4
Instructions
Write a program that asks the user to enter ten temperatures and then finds the sum. The input temperatures should allow for decimal values.

Sample Run
Enter Temperature: 27.6
Enter Temperature: 29.5
Enter Temperature: 35
Enter Temperature: 45.5
Enter Temperature: 54
Enter Temperature: 64.4
Enter Temperature: 69
Enter Temperature: 68
Enter Temperature: 61.3
Enter Temperature: 50
Sum = 504.3

Answers

total = 0

i = 0

while i < 10:

   temp = float(input("Enter Temperature: "))

   total += temp

   i += 1

print("Sum =", str(total))

I hope this helps!

what is the meaning of .com in computer​

Answers

Answer:

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

Explanation:

The terms ".com" is the most common term that you see at the end of the domain name. This term is most widely used in computers and in websites. The dot com ".com" is a suffix and most common suffix in website addresses.

Furthermore, the term ".com" is short for a commercial for many educational, personal, profit, and non-profit websites. The reason behind using .com as a suffix in a website name is that it is most common and recognizable.

You can buy a website domain with dot com ".com" suffix from many website hosting companies. The companies that using dot com in their website name they are mostly doing business on the internet.

Choose the proper term to describe each of the following examples.
senate.gov:____
23.67.220.123:_____

SMTP acc name
Domain name
IP address

Answers

Answer:

senate.gov: Domain Name

23.67.220.123: IP Address

Explanation:

We need to choose the proper term to describe:

a) senate.gov

It is called Domain Name

The domain name is a component of a URL (uniform resource locator ) used to access web sites

b) 23.67.220.123

It is called IP address.

IP address is defined as unique string of characters that is used to uniquely identify each computer in the network.


Help me please I need the correct answe

Answers

Pretty much, yeah.

if it's wrong just pick false.

a employee who has intregity is

Answers

Answer:

is some one who demonstrates  sound moral and ethical principles ,always does the right thing no matter when or who's watching, they can be trusted around the staff and the stakeholders. which means that that person is honest, fair, and dependable

Explanation:

i actually just did a report for a class that i am taking called human resources

i hoped this helped you

Other Questions
Which of the following is NOT an achievement of ancient Greece?a) Accurate estimate of circumference of earthb) Euclids geometry textbookc) Public roads and aqueductsd) Hippocratic OathAND One way in which The Epic of Gilgamesh and The Odyssey are similar is that they areA) sets of written legal principles that spell out the rights of the citizens.B) stories that are tied to religious monotheistic beliefs.C) paintings that depict heroes and cultural values.D) works of literature that give historians information about early civilizations. Hmmmmmmmmmm helllo world my brain is broken and I need help :) Suponga que le piden averiguar cun alto es un poste de luz, su mejor momento es durante la tarde en un da soleado, si la nica herramienta que tiene es una cinta mtrica de 5m cmo hara para saber con la mayor exactitud posible el tamao del poste? Why were iron tools more difficult for the Egyptians to obtain than copper ones? 4 Timmy and Sam ran in a marathon. Timmy ran at a constant speed of 5 miles per hour. Sam ran at aconstant speed of 4 miles per hour and had a head start of 2 miles. Determine where Timmy and Sam willmeet.HELPP When management structures the organization, it clarifies who gets to make decisions, how many people report to one manager, and how many different departments the company needs in order to operate effectively. Two sides and the non-included right angle of one right triangle are congruent to the corresponding parts of anotherright triangle. Which congruence theorem can be used to prove that the triangles are congruent?AAS SSSSASHL Explain why a government would choose to implement expansionary spending. Then, compare and contrast its positive and negative effects. I'll give brainliest pretty please The figure shown is a parallelogram.What are the values of x and y? Please Help Me!!Why were peasants forced to give the majority of their crops to their lords?How did local feudalism lead to the development of nation-states in Europe?How did the kingdoms of Western Africa maintain control over the wealth brought through the salt and gold trades?Why did the military gain influence under the shogun of Japan?Why did most early African civilizations create specialized labor roles for different groups of people?How did feudalism shape the development of towns in Europe?What is the best example of the feudal system of the Middle Ages in Western Europe?How did the spread of Islam in West Africa affect the kingdoms in this area?African cultures did not write down their histories, but instead relied on the oral telling of their histories. Which term describes these story-tellers? 25 POINTS!!!! AND BRAINLIEST!1. An internet company surveyed their users. The first 25 people who responded gave the ages shown below. Answer the following questions and create a histogram to display the data. (You may want to make a frequency table to help organize the data)What intervals would you use to make the histogram?Find the mean, median and mode of the dataFind the mean absolute deviation for the dataIdentify skew of the data (normal or asymmetric)Identify any peaks, gaps or clusters in the data from the histogramAge of internet users:25, 43, 65, 12, 8, 30, 44, 68, 18, 21, 25, 33, 37, 54, 61, 29, 31, 38, 22, 48, 19, 34, 55, 14, 212. What does it mean for data to have variability as it refers to statistical questions? Give an example. Select all that apply.Paine's call to patriots includes:not a few, but allnot on this state, or that state, but every statenot Whigs, but Tories compare the decimal form of 2/5 and 4/9 What advantage did Sparta have in the Peloponnesian War?Sparta had a sizable fleet of ships.Sparta could only be attacked by land.Sparta was protected by a strong wall.Sparta was isolated on a distant island. Help find domain and range Select the correct answer.Choose the verb which correctly completes the sentence.The bus drivers and taxi driverson strike.A.areB.isDorotNeed ASAP, thx! PLEASE HELP ANSWER THESE 2 QUESTIONS *brainiest*!!! A h e t e r o z y g o u s parent is crossed with a h o m o z y g o u s recessive parent. Complete a Punnett Square and answer the questions below. ______ terms are also expressions. (fill in the blank)A. NoB. AllC. Some