+ 3

How to write Python inside HTML/CSS/JS

I have seen multiple Q and A threads talking/asking about Python as back-end for web. How would I write Python code inside HTML/CSS/JavaScript?

10th Jul 2018, 11:19 PM
🐺Michael🐺
🐺Michael🐺 - avatar
22 Respostas
+ 2
Front-End : Flask Back-End : Django
18th Jul 2018, 1:24 AM
DDD
DDD - avatar
+ 10
🐺Michael🐺 Check out Django. I've never used it but I know it's a Python framework for the back end.
10th Jul 2018, 11:35 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 7
Beth Python is a very common back-end language. Companies such as Google and Microsoft use it.
11th Jul 2018, 12:53 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 6
You can't. Python isn't interpreted in a w3-compliant browser. You would have to write an interpreter with another language such as JavaScript which would be redundant.
10th Jul 2018, 11:22 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 6
Jax Sorry 🐺Michael🐺 said he wanted to write it inside of HTML/CSS/JS so I inferred he wanted a front-end solution.
10th Jul 2018, 11:34 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 4
there are some libraries online for using Python as back-end, but I’ve never used, or tried to use anything like it. try this: https://forum.freecodecamp.org/t/how-to-learn-python-backend-development/143028
10th Jul 2018, 11:28 PM
Jax
Jax - avatar
+ 4
Jax He's talking about front end not back end.
10th Jul 2018, 11:29 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 4
Jax Ben Allen (Njinx) I am talking about back-end.
10th Jul 2018, 11:32 PM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 4
Beth It’s easier to learn and understand than JS. 😂🤣😹
11th Jul 2018, 1:14 AM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 4
🐺Michael🐺 Beth lol. If either of you ever want a career in web development, you’ll have to learn JS sooner or later. 😂
11th Jul 2018, 1:50 AM
Jax
Jax - avatar
+ 4
Beth If you want to get into web development you're going to need JS. Sorry.
11th Jul 2018, 2:11 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 3
Ben Allen (Njinx) Oh. Thanks. 😢😿
10th Jul 2018, 11:27 PM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 3
Ben Allen (Njinx) intersting ill have to remember that 🤔
11th Jul 2018, 1:07 AM
Rtvq
Rtvq - avatar
+ 3
JavaScript FTW!! Python's lack of syntax annoys me. It's so hard to tell where functions end, and having to always make sure tabs are done correctly is annoying. But to answer the question, yeah, just Google "Django python" or something.
11th Jul 2018, 3:04 AM
James
James - avatar
+ 3
With latest browser technology, webassembly enable high level languages to be compiled to low-level js codes for front-end app now. For Python, you could check out pypy.js.
11th Jul 2018, 3:22 AM
Calviղ
Calviղ - avatar
+ 2
🐺Michael🐺 that is probably true lol 😂
11th Jul 2018, 1:34 AM
Rtvq
Rtvq - avatar
+ 2
Jax Not nessesarilly. 😂🤣😹
11th Jul 2018, 1:52 AM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 2
Jax nah lol ill just avoid it until my paycheck suffers and its not that I dont like the idea of java script I just dont freakin understand it its like jibberish
11th Jul 2018, 2:00 AM
Rtvq
Rtvq - avatar
+ 2
*searches up what back-end means*
12th Jul 2018, 2:09 PM
Stick
Stick - avatar
+ 1
Ben Allen (Njinx) Hmm… Not sure about that. 🤷‍♂️ He never mentioned he wanted it for front-end. Only he can tell us I guess. 😂
10th Jul 2018, 11:30 PM
Jax
Jax - avatar