What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-10 01:57:01
odd or even python
# Python program to check if the input number is odd or even. # A number is even if division by 2 gives a remainder of 0. # If the remainder is 1, it is an odd number. num = int(input("Enter a number: ")) if (num % 2) == 0: print("{0} i... Add solution -
Python 2021-09-09 23:11:05
how to use tupels python
# A tuple is a sequence of immutable Python objects. Tuples are # sequences, just like lists. The differences between tuples # and lists are, the tuples cannot be changed unlike lists and # tuples use parentheses, whereas lists use square brackets. tup1 =... Add solution -
Python 2021-09-09 16:34:03
Python subclassing a class with custom __new__
# python messing with __new__ and __init__ # create an instance that returns itself or its subclass, or whatever # depending on whatever condition we have created class parent: def __new__(cls, *args): print('parent', i, args) # see below ... Add solution -
Shell/Bash 2021-09-09 16:11:02
pgadmin ubuntu
sudo apt-get update sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev mkdir pgAdmin4 cd pgAdmin4 virtualenv pgAdmin4 cd pgAdmin4 source bin/activate wget https://ftp.postgresql.org/pub/pgadmi... Add solution -
Javascript 2021-09-09 16:10:02
is node js faster than python
Node. js is a better choice if your focus is on web applications and website development. Python is an ideal platform to do multiple things - web applications, integration with back-end applications, numerical computations, machine learning, and network ... Add solution -
Python 2021-09-09 09:47:02
fibonacci logic in pthon in for loop
#Python program to generate Fibonacci series until 'n' value n = int(input("Enter the value of 'n': ")) a = 0 b = 1 sum = 0 count = 1 print("Fibonacci Series: ", end = " ") while(count <= n): print(sum, end = " &quo... Add solution
Best helpers
Jim Pinnells
+5
Bryan Krause
+5
Firey_
+5
Sen_saven
+5
Raindev
+5
Larry Liang
+5
Pippa
+5
Gabor Kanyo
+5
H M
+5
AlexB
+5
Stainsor
+5
Deafnull
+5
Skam
+5
Amin Suzani
+5
Kevin Lewis
+5
William007
+5
Paolo V
+5
Kendel
+5
RandomSeed
+5