Class VI Python Programs
Class VI Python Programs
Ans a=10
b=20
c=a+b
Ans a=10
b=20
c=a-b
Ans a=10
b=20
c=a*b
Q. 4 Write a Python program to ask the user's name and greet him 'Good Morning'.
print("Positive")
else:
print("Negative")
Q. 6 Write a Python program to check whether a person can vote in the election or not.
[age>=18 can vote]
if age>=18:
else:
if marks>40:
print("Pass")
else:
print("Fail")
Q. 8 Write HTML code to design a web page with the following functionalities.
Ans <HTML>
</HEAD>
<BODY BGCOLOR="YELLOW">
<IMG SRC="Pic.jpg">
</BODY>
</HTML>