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
elena55 [62]
3 years ago
15

Write programs in python to display “Valid Voter”. (condition : age of person should be

Computers and Technology
1 answer:
muminat3 years ago
4 0

Answer:

X = int(input("Age = ")

if (X >= 18):

print('Valid Voter')

Else:

return 0

Try it and let me know. :)

You might be interested in
When someone asks, Is this information specific enough?, he or she is interested in more _____.
AVprozaik [17]

Answer:

precision

Explanation:

In simple English precise means exact or something specific

5 0
3 years ago
Read 2 more answers
import java.io\.\*; import java.nio.file\.\*; public class TestFileReader { public static void main(String[] args) { Path p = Pa
Charra [1.4K]

Answer:

The delimiter use is "::".

Explanation:

The Java inbuilt String.split( ) function is use to split a String into an array of String.

The split( ) takes delimiter as arguments/parameter which determines at which point the string is to be broken down into different part/token.

From the above code snippet;

Each line in the file a.txt that is not null is splitted using the statement below:

String[ ] v = line.split("::");

The line is splitted using "::" as delimiter and the resulting array is then assigned to the variable 'v'.

For instance, a line in the file could take the form:

John::Smith::Music

When it is splitted,

String lname = John;

because lname make reference to index 0 of the array.

String fname = Smith;

because fname make reference to index 1 of the array.

String dept = Music;

and dept make reference to index 2 of the array.

6 0
3 years ago
How long does it take to learn python
Alla [95]

Answer:

five to 10 weeks

On average, it can take anywhere from five to 10 weeks to learn the basics of Python programming, including object-oriented programming, basic Python syntax, data types, loops, variables, and functions.

:

3 0
3 years ago
Read 2 more answers
Which of these is an example of output?
Arada [10]

Answer:

using a mouse I believe we'll it's the common answer

8 0
3 years ago
Read 2 more answers
What is the difference between JPG and JPEG.
irina1246 [14]
The difference is jpg or jpeg, is a file type for images and a means of compressing an image
6 0
3 years ago
Other questions:
  • . Electricians will sometimes call ______ "disconnects" or a "disconnecting means."
    12·1 answer
  • If reading or writing a cache line of size 64 bytes to Flash requires 2.56 μJ and DRAM requires 0.5 nJ, and if idle power consum
    9·1 answer
  • Which term refers to an interface between HTML elements and JavaScript program code that allows JavaScript code to manipulate HT
    12·1 answer
  • What will the output be from the following program?
    5·1 answer
  • You’re creating a table for one of your slides, and need to make some modifications to your table structure. Which of the follow
    6·2 answers
  • Randy earn $22 per hour. This is an example of
    11·1 answer
  • Which option can be used to access more settings than are available in the Backstage view?
    5·1 answer
  • Each wireless network has its own name to identify it, known as service set identity. true false
    9·1 answer
  • The analogy of a computer system is often used to illustrate the different parts of memory. The keyboard is where we encode new
    8·1 answer
  • The optical phenomenon that allows us to view rapidly changing still images as moving images is called _______.
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!