What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-11 13:23:02
how to select python 3 interpreter in linux
How to set Python 3 as default interpreter in Linux. Open terminal and write “alias python=python3” and hit enter. You are done! Now check your default interpreter version by simply \ run “python -V” command in the terminal. Add solution -
SQL 2021-09-10 11:55:03
how to take backup of mysql database using python
#!/usr/bin/python ########################################################### # # This python script is used for mysql database backup # using mysqldump and tar utility. # # Written by : Rahul Kumar # Website: http://tecadmin.net # Created date: De... Add solution -
-
Python 2021-09-07 07:09:03
how to change font in tkinter
#How to change the font of a label in Tkinter #Import from tkinter import * #Screen window = Tk() window.title("New Window") window.geometry("300x250") Label(window, text = "This is my new project in python!", font = (&qu... Add solution -
Python 2021-09-03 18:00:03
use python3.7 as default
Simple solution is edit .bashrc and put this line: alias python3=python3.7 Whenever you will write python3 it will replace it with python3.7. Or you can use command update-alternatives which is preferred i.e: sudo update-alternatives --install /usr/bin... Add solution -
Javascript 2021-09-02 23:13:01
object of type set is not json serializable
JSON notation has only a handful of native datatypes (objects, arrays, strings, numbers, booleans, and null), so anything serialized in JSON needs to be expressed as one of these types. As shown in the json module docs, this conversion can be done automa... Add solution -
Python 2021-08-28 06:11:01
what is cpython
# CPython is a tool that converts Python code to C code. Add solution -
Shell/Bash 2021-08-27 14:38:02
raspberry pi update python
# Update the Raspbian sudo apt-get update ential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev tar wget vim # Install Python wget http... Add solution