+ 1

Is it possible to include css inside python?

As in if I want to take inputs and save that with python and then display a fancy form with the help of html, css?

27th Oct 2021, 8:42 AM
Adrija Panda
Adrija Panda - avatar
4 Respostas
+ 2
Yes, first add the following code to your python program: import os os.system('touch file.png') And then see my this code in which I had used HTML and CSS to create a form in Python. https://code.sololearn.com/c21H2kBeTUFE/?ref=app
28th Oct 2021, 1:12 PM
Arnav Gumber
Arnav Gumber - avatar
+ 2
Yes, you can do it very easily. Just add these 2 lines of code to your python code: import os os.system('touch file.png') For better understanding, see this code, I had included html and css in it. https://code.sololearn.com/cXSOlhi551jL/?ref=app
28th Oct 2021, 7:58 AM
Arnav Gumber
Arnav Gumber - avatar
+ 2
I checked your code, but can you explain a little better? I don't understand how to style the display inside python after importing os.system
28th Oct 2021, 12:28 PM
Adrija Panda
Adrija Panda - avatar
+ 2
Thanks a lot! I will try it out
29th Oct 2021, 3:32 AM
Adrija Panda
Adrija Panda - avatar