What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-03 05:32:08
flask site route
from flask import render_template @app.route('/hello/') @app.route('/hello/<name>') def hello(name=None): return render_template('hello.html', name=name) --------------------------------------------------- <!doctype html> <title>... Add solution -
Python 2021-10-27 15:28:07
'print(list(' empty filter
[name for name in starring if name.strip()] Add solution -
Python 2021-10-25 13:29:08
create gui applications with python
from tkinter import * import time Student_forum=Tk() Student_forum.title("student form") Student_forum.geometry('390x400') Roll_ask = Label(Student_forum,text="Roll Number") Roll_ask.pack() Roll = Entry() Roll.pack() name_ask = Label... Add solution -
Javascript 2021-10-08 16:26:05
how to sort an array of objects by a property value in javascript
let list = [ { name: "world" }, { name: "hello", }, ]; // This doesn't account for if names are the same between objects let x = list.sort((a, b) => (a.name > b.name ? 1 : -1)); console.log(x); /* [ { ... Add solution -
Other 2021-09-17 09:41:01
what is metaclass in python
A metaclass is the class of a class. A class defines how an instance of the class (i.e. an object) behaves while a metaclass defines how a class behaves. A class is an instance of a metaclass. While in Python you can use arbitrary callables for metaclass... Add solution
Best helpers
Ranking is empty