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
deff fn [24]
3 years ago
14

What is a for command? can u use a variable instead of a number in the for command!​

Computers and Technology
1 answer:
Ierofanga [76]3 years ago
8 0

Answer:

A for loop is a block of code where a certain instruction repeats a certain amount of times.

Yes, you can use a variable instead of a number in a for loop.

Explanation:

For example, you're using a for loop and you want to repeat it a certain amount of times, but you want to take user input. You would ask the user for their input and assign it to a variable, then use that variable for the for loop.

You might be interested in
_____ is the software that protects you computer from harmful files, Trojan horses, and worms.
Bumek [7]
I think it's antivirus because Antivirus means to protect your computer from a deadly virus
4 0
4 years ago
Read 2 more answers
A customer wants to migrate to Autonomous Database (ADB) but only allows for a very small window of downtime. Golden Gate was ad
kow [346]

Answer:

C

Explanation:

Golden Gate Gate Cloud Service is more appropriate as it is a cloud based replication service with sub-second latency. This minimises downtime for the customer as Golden Gate Cloud can be used immediately after a fault, as the database will be fully replicated up to the moment of the fault occurring.

6 0
3 years ago
Write a program that uses a dictionary to store students birthdays. Your program should ask the user what their name is, and loo
tekilochka [14]

di = {"student":"10/30/1984", "student2":"11/16/2020"}

name = input("What is your name? ")

if name in di:

   print(di[name])

else:

   print("Your name is not in the dictionary.")

You can change the values inside the dictionary. I hope this helps!

3 0
3 years ago
Write a program to compute answers to some basic geometry formulas. The program prompts the user to input a length (in centimete
Svetlanka [38]

Answer:

import math

l = float(input("Enter length in cm: "))

l = l / 100;

print("Entered length is " + str(l) + " meters")

area_square = l * l

print("Area of square is " + str(area_square))

area_circle =  math.pi * l/2 * l/2

print("Area of circle is " + str(area_circle))

volume_cube =  l * l * l

print("Volume of cube is " + str(volume_cube))

Explanation:

*The code is in Python

Ask the user to enter the length in cm

Convert the length to meters and print it

Calculate the area of the square and print it (Since length is equal to a side, the area is length * length)

Calculate the area of the circle and print it (Since length is equal to the diameter, you need to divide it by two to get the radius. The area is pi * length/2 * length/2)

Calculate the volume of the cube and print it (Since length is equal to a side, the volume is length * length * length)

4 0
3 years ago
The process of ensuring that web pages coded with new or advanced techniques still are usable in browsers that do not offer supp
grigory [225]

Answer:

progressive enhancement

Explanation:

Progressive enhancement is a powerful method for web developers when building websites accessible to different level user-agents.

Progressive enhancement technique allows you start with <em>simple</em> and <em>foundational</em> layers and then building more complex technologies on top of it. This principle lets multiple level user-agents can access and retrieve your work no matter what level of technologies they are using.

8 0
3 years ago
Other questions:
  • What happens when a Boolean expression is evaluated?
    7·1 answer
  • Why is binary code made up of a series of ones and zeros?
    15·1 answer
  • Suppose the work required to stretch a spring from 1.1m beyond its natural length to a meters beyond its natural length is 5 J,
    14·1 answer
  • What is the difference page break and column break ​
    7·2 answers
  • Create a Boolean function odd_number_digits(n) that returns True when a positive integer has an odd number of digits. (You may a
    15·1 answer
  • What kind of a bug is 404 page not found
    10·2 answers
  • CIST 1122 Project 2 Instructions
    11·1 answer
  • My Mac is stuck on this screen? How to fix?
    10·1 answer
  • What is responsible for recording an image of an object with camera <br> Pls I neeed it right know
    8·1 answer
  • Worksheet-I • Make a list of 10 application software and 5 utility programs installed in your computer, along with their uses. U
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!