This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymysql | |
connection = pymysql.connect("localhost","root","root","TEST") | |
print("Connected to Database") | |
cursor = connection.cursor() | |
sql = "insert into demo values(1,'Dharmendra',98)" | |
cursor.execute(sql) | |
print("Inserted") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import reduce | |
# import Module1 as model | |
from Module1 import Jutsu | |
from Module1 import Hello | |
from MyPackage import module1 | |
# Defining a list over here | |
li = [1, 2, 3] | |
multiply = lambda x,y : x+y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
int n; | |
cin>>n; | |
vector<int>height; | |
int num; | |
while(n--) | |
{ |