Skip to content

Instantly share code, notes, and snippets.

View sai-sondarkar's full-sized avatar
🖥️
Disrupting @LetsUpgrade

Saikiran Sondarkar sai-sondarkar

🖥️
Disrupting @LetsUpgrade
View GitHub Profile
howManyContact = 3
contactDit = {}
for i in range(howManyContact):
name = input("Ënter Name " )
number1 = input("Ënter number1 " )
number2 = input("Ënter number2 " )
imageUrl = input("Ënter imageUrl " )
email = input("Ënter email " )
import random
maxTicketsAvalibale = int(input("Enter the maximum tickets avaiable "))
participants = []
for temp in range(maxTicketsAvalibale):
st = "Ënter the participant name - "+ str(temp + 1) + " - "
name = input(st)
participants.append(name)
pragma solidity 0.4.18 <= 0.6.12;
contract ElectricityBills{
string Name;
string addrs;
int units;
int money;
string consumerId;
string month;
function ElectricityBills(string newName, string newAddrs, int newUnits, int newMoney, string newConsumerId,
string newMonth) public {
Akash and Vishal are quite fond of travelling. They mostly travel by railways. They were travelling in a train one day and they got interested in the seating arrangement of their compartment.
The compartment looked something like - https://letsupgrade.in/projectIMages/train.jpg
So they got interested to know the seat number facing them and the seat type facing them. The seats are denoted as follows :
Window Seat : WS
Middle Seat : MS
Aisle Seat : AS
You have been given an array A of size N consisting of positive integers. You need to find and print the product of all the number in this array Modulo 109+7.
Input Format:
The first line contains a single integer N denoting the size of the array. The next line contains N space separated integers denoting the elements of the array
Output Format:
Print a single integer denoting the product of all the elements of the array Modulo 109+7.
Constraints:
1≤N≤103
Panda has recently learned about ASCII values.He is very fond of experimenting. With his knowledge of ASCII values and character he has developed a special word and named it Panda's Magical word.
A word which consist of alphabets whose ASCII values is a prime number is an Dhananjay's Magical word. An alphabet is Panda's Magical alphabet if its ASCII value is prime.
Dhananjay's nature is to boast about the things he know or have learnt about. So just to defame his friends he gives few string to his friends and ask them to convert it to Panda's Magical word. None of his friends would like to get insulted. Help them to convert the given strings to Dhananjay's Magical Word.
Rules for converting:
1.Each character should be replaced by the nearest Panda's Magical alphabet.
Indian army is going to do a surprise attack on one of its enemies country. The President of India, the Supreme Commander of the Indian Army will be sending an alert message to all its commanding centers. As enemy would be monitoring the message, Indian army is going to encrypt(cipher) the message using basic encryption technique. A decoding key 'K' (number) would be sent secretly.
You are assigned to develop a cipher program to encrypt the message. Your cipher must rotate every character in the message by a fixed number making it unreadable by enemies.
Given a single line of string 'S' containing alpha, numeric and symbols, followed by a number '0<=N<=1000'. Encrypt and print the resulting string.
Note: The cipher only encrypts Alpha and Numeric. (A-Z, a-z, and 0-9) . All Symbols, such as - , ; %, remain unencrypted.
SAMPLE INPUT
All-convoYs-9-be:Alert1.
from flask import Flask, request, redirect, url_for, flash, jsonify
import numpy as np
import pickle as p
import json
app = Flask(__name__)
@app.route('/api/', methods=['POST'])
1. What is API ?
https://www.youtube.com/watch?v=s7wmiS2mSXY
IT is a waiter, which is going back and forth between our end applications and the DB server.
2. Types of API ?
SOAP stands for Simple Object Access Protocol. REST stands for REpresentational State Transfer.
SOAP is a XML based messaging protocol and REST is not a protocol but an architectural style.
print(' Welcome to the nikils Tic Tac Toe' )
while True:
board = [' ']* 10
player1_marker,player2_marker = player_input()
turn = choose_first()
print( turn + " Will be playing first ")