What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-03 14:42:58
dump data to pickle python
import pickle # take user input to take the amount of data number_of_data = int(input('Enter the number of data : ')) data = [] # take input of the data for i in range(number_of_data): raw = input('Enter data '+str(i)+' : ') data.append(raw) #... Add solution -
Python 2022-02-02 18:20:43
n natural numbers
Method 1: num = int(input("Enter the Number:")) value = 0 for i in range(1, num+1): value = value + i print("Sum of N natural numbers:", value) Method 2: num = int(input("Enter the Number:")) sum = (num * (num+1))/2 ... Add solution -
Python 2022-02-02 17:25:23
fibonacci series program in python
#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 -
Python 2022-02-02 17:17:19
how to clear python console in pycharm
This question is a bit old but I thought I would leave this here for other people who are wondering how to do this How to Download this package https://github.com/asweigart/pyautogui. It allows python to send key strokes. You may have to install some o... Add solution -
Python 2022-02-01 04:55:44
how to take matrix input in python
# A basic code for matrix input from user R = int(input("Enter the number of rows:")) C = int(input("Enter the number of columns:")) # Initialize matrix matrix = [] print("Enter the entries rowwise:") # For use... Add solution -
Python 2022-02-01 04:20:03
collecting candies codevita solution in python
T = int(input()) arr1 = [] for i in range(0, T): N = int(input()) arr = list(map(int,input().split())) arr.sort() count = arr[0] for i in range(1, len(arr)): count = count + arr[i] arr1.append(count) print(sum(arr1)) Add solution -
Javascript 2022-02-01 00:16:31
convert string to unicode javascript
Use String.fromCharCode() like this: String.fromCharCode(parseInt(input,16)). When you put a Unicode value in a string using \u, it is interpreted as a hexdecimal value, so you need to specify the base (16) when using parseInt. Add solution -
Python 2022-01-30 23:45:20
Multiplication table with Python
first_doc = '''it created by iliya zahedi abghari i am the student in iran , alameh tabatabayi school ''' print(first_doc) def jadval_zarb(rows, columns): for i in range(1,rows+1): for j in range(1,columns+1): #print(i*j, end=' ') print('{:>... Add solution
Best helpers
Ranking is empty