0% found this document useful (0 votes)
4 views18 pages

Python HTML Project Report

This document presents practical assignments in Python and HTML for a 9th-grade student, Hirdesh Bhatt, aimed at reinforcing coding skills. It includes tasks such as writing HTML forms, creating tables, and developing Python programs for various calculations and checks. The assignments are designed to enhance understanding of programming concepts and web development through hands-on exercises.

Uploaded by

hirdeshbhatt100
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views18 pages

Python HTML Project Report

This document presents practical assignments in Python and HTML for a 9th-grade student, Hirdesh Bhatt, aimed at reinforcing coding skills. It includes tasks such as writing HTML forms, creating tables, and developing Python programs for various calculations and checks. The assignments are designed to enhance understanding of programming concepts and web development through hands-on exercises.

Uploaded by

hirdeshbhatt100
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1

1
1

Python and HTML Practical Assignments

Submitted By: Hirdesh Bhatt,


Class :9 D
Roll No: “17”_

Submitted To: Suresh raj pant


Submission Date: 2082/11/16
School Name: ____

🔘 Signature
1
Table of content

DECLARATION__________________________________________________________3

ACKNOWLEDGMENT____________________________________________________4

ABSTRACT_______________________________________________________________4

INTRODUCTION_________________________________________________________5

OBJECTIVES_____________________________________________________________5

1.)WRITE HTML CODE TO MAKE GIVEN FORM____________________________6

2.)WRITE HTML SCRIPT FOR FOLLOWING TABLE_________________________7

[Link] A HTML SCRIPT TO PRINT FOLLOWING LIST .___________________8

[Link] A PROGRAM IN PYTHON TO CALCULATE SIMPLE INTEREST._____9

5. WRITE A PROGRAM IN PYTHON TO INPUT A NUMBER AND CHECK


GIVEN NUMBER IS POSITIVE OR NEGATIVE._____________________________10

[Link] A PROGRAM IN PYTHON TO INPUT NUMBER AND CHECK GIVEN


NUMBER IS PALINDROME OR NOT______________________________________11

[Link] A PROGRAM IN PYTHON TO INPUT A NUMBER AND CHECK


GIVEN NUMBER IS ARMSTRONG OR NOT.________________________________13

[Link] A PROGRAM IN PYTHON TO INPUT ANY MULTIDIGIT AND FIND


PRODUCT OF ITS DIGIT._________________________________________________15

CONCLUSION___________________________________________________________16

REFERENCES___________________________________________________________16

THANK YOU____________________________________________________________17
1
Declaration
I hereby declare that the practical assignments presented in this
document are my own work. All efforts have been made to the best of
my ability, and any assistance received has been duly acknowledged. I
understand that honesty and integrity are important, and this work
represents a sincere effort to learn and demonstrate my understanding
of Python and HTML basics.

Acknowledgment
I would like to express my gratitude to my teacher, classmates, and
family who supported me throughout the completion of these practical
assignments. Their guidance and encouragement helped me to
complete the tasks and gain a better understanding of the topics. I am
especially thankful to my teacher for providing valuable feedback and
resources that facilitated my learning.

Abstract
This document contains ten practical assignments focusing on basic
Python programming and HTML coding tasks suitable for a 9th grade
level. Each assignment is designed to help students practice
fundamental concepts in coding and web development. The
assignments include exercises such as writing simple programs,
creating HTML pages, and combining both technologies. Blank spaces
are provided for the student to fill in the details of their solutions. This
report demonstrates the student’s work on these task.
1
Introduction
Python is a widely used programming language known for its simplicity
and readability. It is a great language for beginners to learn
programming concepts. HTML (HyperText Markup Language) is the
standard language for creating web pages and web applications.
Learning both Python and HTML will help students build a foundation in
software development and web design. In this series of practical
assignments, students will write simple Python programs and create
basic HTML pages to reinforce their learning. These tasks are designed
to give students practical experience with coding and problem-solving
in a structured way. Each assignment includes sections for the student
to fill out the aim, write code, display output, and provide explanations
in the blank spaces provided.

Objectives
 To familiarize students with the Python programming language
and basic syntax.
 To practice writing simple Python programs to solve problems.
 To introduce students to HTML structure and elements for
creating web pages.
 To encourage problem-solving and logical thinking through
hands-on coding exercises.
 To enhance understanding of how Python and HTML can be
used together (e.g., using Python to generate HTML output).
1

1.)write html code to make given form

ANS:
<html>
<head>
<title>Login Page</title>
</head>
<body>
<h2>Login Form</h2>
<hr>
<form>
User Name:
<input type="text" name="user">
<br><br>
Password:
<input type="password"
name="pass">
<br><br>
<input type="submit"
value="Submit">
<input type="reset"
value="Clear">
</form>
<hr>
</body>
</html>
1

2.)Write HTML Script for following table

ANS
<html>
<head>
<title>Student Marks</title>
</head>
<body>
<table border="1" align="center">
<tr align="center">
<td rowspan="2">Name</td>
<td colspan="3">Subjects</td>
</tr>
<tr align="center">
<td>Java</td>
<td>Python</td>
<td>Flutter</td>
</tr>
<tr>
<td>Diwaker</td>
<td>80</td>
<td>90</td>
<td>85</td>
</tr>
<tr>
<td>Parash</td>
<td>75</td>
<td>95</td>
1
<td>90</td>
</tr>
</table>
</body>
</html>

[Link] a html script to print following list .

ANS:
<html>
<head>
<title>LBA Students</title>
</head>
<body>
<h1>LBA Student List</h1>
<ol>
<li>Secondary Level
<ol type="a">
<li>Class 9</li>
<li>Class 10</li>
</ol>
</li>
<li>Lower Secondary Level
<ol type="I">
<li>Class 6</li>
<li>Class 7</li>
<li>Class 8</li>
1
</ol>
</li>
</ol>
</body>
</html>

[Link] a program in python to calculate simple


interest.

ANS:
a = float(input("Enter Principal: "))
b = float(input("Enter Time: "))
c = float(input("Enter Rate: "))
si = (a * b * c) / 100
print("Simple Interest =", si)
1

5. write a program in python to input a number and


check given number is positive or negative.

ANS:

num = int(input("Enter number: "))

if num > 0:
print("Positive number")
elif num < 0:
print("Negative number")
else:
print("Zero")
1
1
[Link] a program in python to input number and
check given number is palindrome or not

ANS:

num = int(input("Enter number: "))


rev = 0
temp = num

while num > 0:


d = num % 10
rev = rev * 10 + d
num = num // 10

if temp == rev:
print("Palindrome")
else:
print("Not Palindrome")
1
[Link] a program to input any 5 element in list and print
second and forth element.

ANS:

a = [290, 98, 97, 60, 82]

print("Second element:", a[1])


print("Fourth element:", a[3])
1

[Link] a program in python to input a number and


check given number is Armstrong or not.

ANS:

num = int(input("Enter number: "))


temp = num
sum = 0

while num > 0:


d = num % 10
sum = sum + d*d*d
num = num // 10

if temp == sum:
print("Armstrong number")
else:
print("Not Armstrong")
1
[Link] a program in python to print following series
1,2,3,4……up to 21th term

ANS:

for i in range(1, 22):


a=i*i
if i < 21:
print(a, end=",")
else:
print(a)
1
[Link] a program in python to input any multidigit
and find product of its digit.

ANS:

num = int(input("Enter number: "))


p=1

while num > 0:


d = num % 10
p=p*d
num = num // 10

print("Product =", p)
1
Conclusion
Through these practical assignments, students will consolidate their understanding
of Python basics and HTML page design. Completing the exercises will develop
confidence in writing code and designing simple web pages. The practice tasks are
meant to be engaging and educational, helping students learn by doing. By the end
of this exercise, students should feel more comfortable working with code and have
a sense of accomplishment in applying what they learned.

References
 Python documentation: [Link]
 HTML tutorial: [Link]
 Any classroom notes and textbooks provided by your school.
1
Thank you
Thank you for reviewing this document. I hope the practical assignments have been
clear and useful for understanding Python and HTML. Your feedback and guidance
are appreciated.

You might also like