PythonHub:
import cv2
image = cv2.imread("C/Users/User/Downloads/spid.png")
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
inverted = 255-gray_image
blur = cv2.GaussianBlur(inverted, (21, 21), 0)
invertedblur = 255-blur
sketch = cv2.divide(gray_image, invertedblur, scale=256.0)
cv2.imwrite("sketch.png", sketch)
cv2.imshow("Image", sketch)
import cv2
image = cv2.imread("C/Users/User/Downloads/spid.png")
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
inverted = 255-gray_image
blur = cv2.GaussianBlur(inverted, (21, 21), 0)
invertedblur = 255-blur
sketch = cv2.divide(gray_image, invertedblur, scale=256.0)
cv2.imwrite("sketch.png", sketch)
cv2.imshow("Image", sketch)
π24π€©3
>>> x = ['python', 'hub']
>>> x.sort(key = len)
>>> print(x)
>>> x.sort(key = len)
>>> print(x)
Anonymous Quiz
39%
['hub, 'python']
29%
['python', 'hub']
23%
Error
9%
None of the above
π35π€―29π11π8π₯5π’5
What will be the value of the
following Python expression?
>>> 4 +3 % 5
following Python expression?
>>> 4 +3 % 5
Anonymous Quiz
27%
7
35%
2
20%
4
18%
1
π€40π21π5π4
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 π
π12π₯°2
A step by step guide to make money with ChatGpt π€π
https://medium.com/@inprogrammer/make-money-with-chatgpt-bd80d33e7406
https://medium.com/@inprogrammer/make-money-with-chatgpt-bd80d33e7406
π11π1
π46π’16π3
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>
π40β€16π₯°3π€1
π28β€10
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 π
π14
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β¦
β€6π4
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()
π36π₯7β€5