LEGEND Form Project π
π
-----------------------------------------------------
Complete Source Code π
-----------------------------------------------------
<html>
<head>
<style>
.outer{
margin:auto;
height:300px;
width:400px;
border:2px solid black;
position:relative
}
p{
margin-left:80px;
}
.in{
margin-left:80px;
padding:10px
}
#bt{
margin-top:20px;
position:absolute;
left:150px;
}
#bt:hover{
background:green;
font-size:13px;
cursor:pointer;
color:white;
}
</style>
<script>
function fa(){
if(a.value=="" || b.value==""){
f()
document.getElementById("a").style.border="3px solid red"
document.getElementById("b").style.border="3px solid red"
bt.value="Pahila data tak"
}
else{
document.getElementById("a").style.border="3px solid green"
document.getElementById("b").style.border="3px solid green"
bt.value="Ha thik ahe ata"
bt.style.left="120px";
}
}
flag=1
function f(){
if(flag==1){
bt.style.left="210px"
flag=2
}
else if(flag==2){
bt.style.left="80px"
flag=1
}
}
</script>
</head>
<body>
<div class="outer">
<h1 style="text-align:center">Legend form</h1>
<p>Enter Id</p>
<input class="in" type="text" placeholder="Enter id" id="a"/>
<p>Enter Confirm Pass</p>
<input class="in" type="password" placeholder="Enter password" id="b"/>
<br>
<input type="submit" onmouseenter="fa()" onclick="alert('waaaa')" id="bt" />
</div>
</body>
</html>
-----------------------------------------------------
Complete Source Code π
-----------------------------------------------------
<html>
<head>
<style>
.outer{
margin:auto;
height:300px;
width:400px;
border:2px solid black;
position:relative
}
p{
margin-left:80px;
}
.in{
margin-left:80px;
padding:10px
}
#bt{
margin-top:20px;
position:absolute;
left:150px;
}
#bt:hover{
background:green;
font-size:13px;
cursor:pointer;
color:white;
}
</style>
<script>
function fa(){
if(a.value=="" || b.value==""){
f()
document.getElementById("a").style.border="3px solid red"
document.getElementById("b").style.border="3px solid red"
bt.value="Pahila data tak"
}
else{
document.getElementById("a").style.border="3px solid green"
document.getElementById("b").style.border="3px solid green"
bt.value="Ha thik ahe ata"
bt.style.left="120px";
}
}
flag=1
function f(){
if(flag==1){
bt.style.left="210px"
flag=2
}
else if(flag==2){
bt.style.left="80px"
flag=1
}
}
</script>
</head>
<body>
<div class="outer">
<h1 style="text-align:center">Legend form</h1>
<p>Enter Id</p>
<input class="in" type="text" placeholder="Enter id" id="a"/>
<p>Enter Confirm Pass</p>
<input class="in" type="password" placeholder="Enter password" id="b"/>
<br>
<input type="submit" onmouseenter="fa()" onclick="alert('waaaa')" id="bt" />
</div>
</body>
</html>
Create Graphical User Interfaces with Python.pdf
11.3 MB
β
Book : Create Graphical User Interfaces with Python β How to build windows, buttons, and widgets for your Python projects
β Download now π
β Download now π
50+ python projects with
Source codeππ
https://medium.com/@inprogrammer/50-python-projects-with-source-code-336bd54fea11
Source codeππ
https://medium.com/@inprogrammer/50-python-projects-with-source-code-336bd54fea11
Medium
50+ python projects with source code
Python is a popular high-level programming language that is widely used for web development, data analysis, artificial intelligence, andβ¦
Python learning:
import turtle
a=turtle.Turtle()
a.getscreen().bgcolor("black")
a.penup()
a.goto(-200, 100)
a.pendown()
a.color("yellow")
a.speed(25)
def star(turtle, size):
if size<=10:
return
else:
turtle.begin_fill()
for i in range (5):
turtle.pensize(2)
turtle.forward(size)
star(turtle, size/3)
turtle.left(216)
turtle.end_fill()
star(a, 360)
turtle.done()
import turtle
a=turtle.Turtle()
a.getscreen().bgcolor("black")
a.penup()
a.goto(-200, 100)
a.pendown()
a.color("yellow")
a.speed(25)
def star(turtle, size):
if size<=10:
return
else:
turtle.begin_fill()
for i in range (5):
turtle.pensize(2)
turtle.forward(size)
star(turtle, size/3)
turtle.left(216)
turtle.end_fill()
star(a, 360)
turtle.done()
Which of the following character is
used to give single-line comments in
Python?
used to give single-line comments in
Python?
Anonymous Quiz
25%
//
61%
#
4%
!
11%
/*
Get this book for Freeπ https://inprogrammer.com/data-science-ebooks-free-online/
Which one of the following is not a
keyword in Python language?
keyword in Python language?
Anonymous Quiz
29%
eval
9%
pass
9%
def
54%
nonlocal
5_6125174816421970019.pdf
416.5 KB
TCS Important Interview Preparation Questions
from turtle import *
speed(0)
bgcolor('black')
color('orange')
hideturtle()
n = 1
p = True
while True:
circle(n)
if p:
n = n - 1
else:
n = n + 1
if n == 0 or n == 60:
p = not p
left(1)
forward(3)
done()
speed(0)
bgcolor('black')
color('orange')
hideturtle()
n = 1
p = True
while True:
circle(n)
if p:
n = n - 1
else:
n = n + 1
if n == 0 or n == 60:
p = not p
left(1)
forward(3)
done()