What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-31 23:15:04
how to convert tuple to int in python
# initialize tuple test_tuple = (1, 4, 5) # printing original tuple print("The original tuple : " + str(test_tuple)) # Convert Tuple to integer # Using int() + join() + map() res = int(''.join(map(str, test_tuple))) # printing r... Add solution -
Other 2022-01-31 07:25:59
College application c++
#include<iostream> #include<iomanip> using namespace std; class college_Appln { protected: int appln_No; char name[30]; int age; float marks[6]; public: void get(); void print(); }; class arts_Appln:public college_Appln { float entra... 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 -
Python 2022-01-30 19:31:20
how to convert dollars to rupees and rs to dollar in python
print('hello welcome to converter of rs to dollar and dollar to rs') print() carry_on = True while carry_on: try: ask = int(input('write what do you want to do find? for finding dollar to rs type "1" or to find rs to dollar write... Add solution -
Java 2022-01-29 21:25:51
how to make a calculator using switch case in java
/* Create Switch cases */ Scanner sc= new Scanner(System.in); int firstNum= sc.nextInt(); int secondNum= sc.nextInt(); System.out.println("Enter an operator (+, -, *, /):"); char operator= sc.next().chartAt(0); double result=0; switch(operator){... Add solution -
SQL 2022-01-29 12:21:34
django count sql queries
>>> from django.conf import settings >>> settings.DEBUG = True >>> from django.db import connection >>> Model.objects.count() >>> # python 3 uses print() >>> print(len(connection.queries)) 1 Add solution -
Java 2022-01-28 20:37:10
find the largest and smallest number in an unsorted integer array in Java
public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("Number of integers to enter:"); int numberEnter = keyboard.nextInt(); int numbers[] = new int[numberEnter]; int pos = 0; ... Add solution
Best helpers
Ranking is empty