+ 1

Pls?

Can sombody help me put photos on my codes pls?

25th Sep 2024, 12:25 PM
MaddieTheFreindlyCoder
MaddieTheFreindlyCoder - avatar
8 Answers
+ 9
MaddieTheFreindlyCoder , since you have added "python" tag to your question If you want to add image to your python code you can import python module "urllib.request" which helps in opening and reading the image urls you want to display https://sololearn.com/compiler-playground/c5exF1mhGSOb/?ref=app But if you want to display images on Html pages , simply use <img> tag <img src="your image url">
25th Sep 2024, 1:25 PM
Suparna Das
Suparna Das - avatar
+ 2
you are trying to open `file.png` for writing.... are you sure about this? then why is there `url_img` ? note: python needs pillow to work with images
25th Sep 2024, 2:28 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 2
Using python and other languages...which language code u need
26th Sep 2024, 5:10 AM
Suraj Web
Suraj Web - avatar
+ 1
To add photos to your code, you can use the HTML <img> tag. For example, if you have an image named photo.jpg in the same directory as your HTML file, you would write <img src="photo.jpg" alt="A description of the photo">. The src attribute specifies the path to your image file, and the alt attribute provides alternative text for the image if it cannot be displayed. https://www.the-disneyhub.com
30th Sep 2024, 11:09 AM
Gail207Martinez
0
SurajGuptaOnline i need python.
26th Sep 2024, 7:42 AM
MaddieTheFreindlyCoder
MaddieTheFreindlyCoder - avatar
0
Hello, thank you for helping me katty Pery.
28th Sep 2024, 10:32 AM
MaddieTheFreindlyCoder
MaddieTheFreindlyCoder - avatar
0
Hi, does that work for python??
30th Sep 2024, 12:14 PM
MaddieTheFreindlyCoder
MaddieTheFreindlyCoder - avatar