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
Nataliya [291]
3 years ago
10

What is the output of the following code:

Computers and Technology
1 answer:
Zielflug [23.3K]3 years ago
7 0

Answer:

Explanation:

print(list1)

['C++', 'JAVA', 'ASP.PHP']

[2:-2]

Gets 2 position(C++) to -2 position(ASP.PHP), JAVA is in the Middle

print(list2)

[]

Gets middle of C++(nothing)

print(list3)

['Python', 'JAVA', 'MySQL']

Get first, jump 3, get first...

'get', 'any', 'any', 'get', 'any', 'any', 'get', ...

You might be interested in
What is the term for a server at the highest level of the Domain Name System (DNS)?
Igoryamba

Answer:

Root name server, root level server, or root server.

Explanation:

Root level server, root name server or simply root server is the server responsible for basic functions in translating domain names into IP addresses.  It is situated in the root zone of the domain name system (DNS) which is the largest layer in the DNS' name space.  

<em>Hope this helps!</em>

5 0
4 years ago
What’s ur guys rank of all 3D Mario games (all of these are great games btw)? These are my opinions I’d rly enjoy hearing yours.
Blizzard [7]

Answer:

super mario galaxy best of all time

Explanation:

3 0
3 years ago
. Which of the following is NOT an option for increasinghard drive storage space?
Andrew [12]

Answer: B) Install an addition memory card to the current drive

Explanation: Drive  storage space is space that has particular capacity to store files and data. If the storage reaches the capacity,it turns out that more space is required for the data storage. The hard drive is a major storage space in a system with large capacity. So, if it gets full, there are various ways it could be increased such as replacing it with other internal hard drive, external hard drive etc.

But installation of the memory card is not the solution for increasing the space because they don't have very large space and can only support small devices.

7 0
3 years ago
Write a Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom fu
Klio2033 [76]

A Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversions.

Explanation:

  • Functions should be defined in a custom module named temps. Custom function c_to_f should be a void function defined to take a Celsius temperature as a parameter.
  • It should calculate and print the equivalent Fahrenheit temperature accurate to three decimal places.
  • Custom function f_to_c should be a value-returning function defined to take a Fahrenheit temperature as a parameter.
  • This function should calculate the equivalent Celsius temperature and return it.

The code is given below :

def c_to_f(tempCelsius):

  tempFahrenheit = ((9/5)*tempCelsius) + 32;

  print("\n %.3f Celsius is %.3f Fahrenheit \n" %(tempCelsius, tempFahrenheit));

def f_to_c(tempFahrenheit):

  tempCelsius = (tempFahrenheit - 32) * (5/9);

  return tempCelsius;

(Import modules)

import temps;  

def main():

  temperature = float(input("\n Enter a temperature: "));

  scale = input("\n Was that input Fahrenheit or Celsius c/f? ");

  if scale.lower() == 'c':

      temps.c_to_f(temperature);

  else:

 tempCel = temps.f_to_c(temperature);

      print("\n %.1f Fahrenheit equals %.3f Celsius \n" %(temperature, tempCel));

main();

4 0
4 years ago
Write the definition of a function named printpoweroftwostars that receives a non-negative integer n and prints a line consistin
Aleksandr-060686 [28]
To accomplish this without using a loop,
we can use math on a string.

Example:
print("apple" * 8)

Output:
appleappleappleappleappleappleappleapple

In this example,
the multiplication by 8 actually creates 8 copies of the string.

So that's the type of logic we want to apply to our problem.

<span>def powersOfTwo(number):
if number >= 0:
return print("*" * 2**number)
else:
<span>return

Hmm I can't make indentations in this box,
so it's doesn't format correctly.
Hopefully you get the idea though.

We're taking the string containing an asterisk and copying it 2^(number) times.

Beyond that you will need to call the function below.
Test it with some different values.

powersOfTwo(4) should print 2^4 asterisks: ****************</span></span>
4 0
4 years ago
Other questions:
  • While configuring a new 802.11g wireless network, you discover another wireless network within range that uses the same channel
    13·1 answer
  • The conceptual phase of any system or just the software facet of a system best describes the sdlc
    9·1 answer
  • Podcast ____ software uses rss to allow you to subscribe to your favorite podcasts from one central application.
    12·2 answers
  • "Create a Python program named detect_column_level_data_entry_errors. When complete, you will run this program to produce a diag
    11·1 answer
  • Mrs. Johnson is here today to receive an intercostal nerve block to mitigate the debilitating pain of her malignancy. Her cancer
    13·1 answer
  • Here is free points im leaving
    11·2 answers
  • When we convert an automaton to a regular expression, we need to build expression not go through certain other states. Below is
    15·1 answer
  • Write a program that creates a two-dimensional array initialized with test data. Use any data type you wish. Declare a two-dimen
    9·1 answer
  • Define the term algorithm and describe how programmers use algorithms when designing a program.
    8·1 answer
  • Which prefix indicates you are browsing a secure webpage
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!