Computer Science, asked by GARVITAMEWAL, 8 months ago

HELLO BUDDIES ..... PLEASE ANSWER FAST.....

Q.1 Solve the following:-

(a) Write a Python program to input age of a person and check eligibility for vote.



(b) Write the use of following list methods with example. (3)

i. append()

ii. extend()

iii. insert()


Answers

Answered by 32mayurkolekar
1

Explanation:

(a)

age = input ("enter your age")

if ( age> 18):

print("eligible for vote.")

else:

print("not eligible for voting")

(b)

list= ['rohit', 'surya']

list.append('saurav)

list.insert('gaurav')

list.insert('nitya')

Similar questions