Skip to content

Instantly share code, notes, and snippets.

View DNDK's full-sized avatar
🌶️
ммм перчик

Ядол Боёб DNDK

🌶️
ммм перчик
  • На члене
  • 21:28 (UTC +03:00)
View GitHub Profile
import re
import sys
class ExpressionError(Exception):
def __init__(self):
super().__init__()
def __str__(self):
return "Error"
def add(a, b):
@DNDK
DNDK / weather.py
Created August 2, 2021 14:01
Один из моих первых скриптов на python для получения прогноза погоды моего родного города
import requests
import time
rus = {
''
}
par = {
"lang":"ru",
"lat": 53,
@DNDK
DNDK / caesar.py
Created August 28, 2020 16:12
Caesar encoding
alph = [
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"abcdefghijklmopqrstuvwxyz",
]
text = input("Enter the text\n>>")
shift = input("Enter the shift\n>>")
try:
class Employe:
spn = 1
def __init__(self,n,sn,spn):
self.name = n
self.surname = sn
self.spn = spn #rank
def __del__(self):
print("Good bye, mr. ", self.name," ",self.surname)
emps = []
counter = 1
#include <iostream>
#include <vector>
#include "petshop.h"
#include <ctime>
#include <iterator>
using namespace std;
static int money = 100;