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
zimovet [89]
3 years ago
12

8.10 Code Practice Question 1

Computers and Technology
1 answer:
Dmitriy789 [7]3 years ago
6 0

x = input("Enter a word: ")

y = input("Enter a word: ")

x,y = y, x

print(x)

print(y)

I hope this helps

You might be interested in
Write a program that reads the contents of the two files into two separate lists. The user should be able to enter a boy’s name,
insens350 [35]

Answer:

Check Explanation.

Explanation:

A programming language is used by engineers, technologists, scientists or someone that learnt about programming languages and they use these programming languages to give instructions to a system. There are many types for instance, c++, python, Java and many more.

So, the solution to the question above is given below;

#define the lists

boyNames=[]

girlNames=[]

#open the text file BoyNames.txt

with open('BoyNames.txt','r') as rd_b_fl:

boyNames=rd_b_fl.readlines()

boyNames=[name.strip().lower() for name in boyNames]

#open the text file GirlNames.txt

with open('GirlNames.txt','r') as rd_b_fl:

girlNames=rd_b_fl.readlines()

girlNames=[name.strip().lower() for name in girlNames]

#print the message to prompt for name

print('Enter a name to see if it is a popular girls or boys name.')

while True:

#prompt and read the name

name=input('\nEnter a name to check, or \"stop\" to stop: ').lower()

# if the input is stop, then exit from the program

if name=='stop':

break

# If the girl name exits in the file,then return 1

g_count=girlNames.count(name)

# if return value greater than 0, then print message

if g_count>0:

print(name.title()+" is a popular girls name and is ranked "

+str(girlNames.index(name)+1))

# if return value greater than 0, then print message

#"Not popular name"

else:

print(name.title()+" is not a popular girls name")

## If the boy name exits in the file,then return 1

b_count=boyNames.count(name)

if b_count>0:

print(name.title()+" is a popular boys name and is ranked "

+str(boyNames.index(name)+1))

# if return value greater than 0, then print message

#"Not popular name"

else:

print(name.title()+" is not a popular boys name")

3 0
3 years ago
Within program menus, some menu items have an arrow next to them. What will open if you click on that command?
hodyreva [135]
The answer is most probably a subemenu
4 0
4 years ago
Read 2 more answers
WILL GIVE BRAINLIEST TO WHOEVER CAN HELP!!!!!!!!!!!!!!
Ne4ueva [31]
You might have to get one of these i use it at home for many things like this. You can use it for any type of speaker or audio plug in.

https://www.google.com/search?q=3.55+mm+jack&rlz=1C1GGRV_enUS758US758&tbm=isch&source=iu&ictx=1&fir=...:

7 0
4 years ago
Sarah stores data electronically.
attashe74 [19]

Answer:

Always back up your data. Prevention is the best protection.

Diversify your backups. You always want more than one backup system.

Encrypt sensitive data. Data is not always encrypted even when it's on a backup tape.

Address data security.  

Use anti-virus and email security.  

Trust the professionals

Explanation: <u>HOPE IT HELPS YOU</u>

3 0
3 years ago
Analyzing an algorithm with Big O notation is useful for predicting:_______.
seropon [69]

Answer:

C. The performance of the algorithm as different amounts of inputs are processed

Explanation:

Analyzing an algorithm with Big O notation is useful for predicting:

The performance of the algorithm as different amounts of inputs are processed

7 0
3 years ago
Other questions:
  • What is the device that allows users to manipulate data by controlling an onscreen pointer
    5·2 answers
  • Anna always has a hard time finding files on her computer because she does not know where she saved them. This also affects her
    12·2 answers
  • In the client-server model, what is the primary protocol used for communication between a browser and Web server?
    10·1 answer
  • Assume there is a Mac and a HP computer each has an Intel microprocessor. Would an assembly program produced using the Mac compu
    13·1 answer
  • Create a class named Horse that contains the following data fields: name - of type String color - of type String birthYear - of
    8·1 answer
  • 3. Comparing the Utopian and dystopian views of Technology according to Street (1992) which one in your view is more applicable
    9·1 answer
  • Digital computers use a........ system to encode date and programs.<br>​
    8·1 answer
  • The core of ___________ is the implementation of intrusion detection systems and intrusion prevention systems at entry points to
    8·1 answer
  • The density of mercury is 13.6 grams per cubic centimeter. Complete the steps for converting 13.6 g/cm3 to kg/m3.
    9·1 answer
  • Why is internet download speed slower on a computer vs phone
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!