A

@abdulrhman

Math

Python
2 years ago
import math x = 9999999999999999999999999999.9999999999999999999 y = -10.0 result = math.fabs(x) print(result)

MySQL-One

MySQL
2 years ago
create table `shops`( `name` varchar (255), CONSTRAINT `shops_pr` primary key (`name`) ); create table `users` ( `id` int , `name` varchar (255), CONSTRAINT `users_pr` primary key (`name`) );

MySQL-Three

MySQL
2 years ago
create table `users` ( `id` DATETIME ); insert into `users` (`id`) values (CURRENT_TIME); -- insert into `users` (`id`) values (14.3265); -- insert into `users` (`id`) values (44.999); -- select * from `users`; select DAY (CURRENT_DATE);

MySQL-Two

MySQL
2 years ago
create table `users` ( `name` varchar(255), `lastname` varchar(255) ); insert into `users` (`name`,`lastname`) values ('Hamdo','Abdrbbeh'); insert into `users` (`name`,`lastname`) values ('Madiha','Zarzur');

MySQL-One

MySQL
2 years ago
use `mycompiler`; create table `city`( `name` varchar (255) primary key ); create table `users` ( `id` int unique, `name` varchar(255), `city` varchar(255),

numpy

Python
2 years ago
import numpy as np array = np.array ([[[1,2,3], [4,5,6]]]) print(array[0,:2,::2])

Logging

Python
2 years ago
import logging logging.basicConfig (filename="logging.log", filemode="a", format="%(asctime)s : %(name)s - %(levelname)s : '%(message)s'" ,datefmt="%Y/%b/%d %H:%M:%S" ) my_logger1 =logging.getLogger ("Elz") my_logger2 =logging.getLogger ("OS") my_logger2.error ("This is Error")

Smtplib

Python
2 years ago
import smtplib smtp_server = "smtp.gmail.com" port = 587 username = "abdrbbeh@gmail.com" password = "gnizfzddloegooni" print(0) server = smtplib.SMTP(smtp_server, port) server.starttls() print(0) server.login(username, password)

OOP

Python
2 years ago
class banana : mylist = [1,2,3] def __init__(self,name,price): self.name=name self.price=price print(self.name,self.price) @classmethod def rival(cls,price): cls.price=price print(f"{cls.price-10}")

D

Python
2 years ago
def a (func): def c (*n): print("Before") func (*n) print("After") return c @a def b (*n): number = 0 for num in n:

Date,Time

Python
2 years ago
import datetime #print((datetime.datetime)) for m in dir (datetime.datetime): if m.startswith ("_") == False: print(m)

map,filter,reduce

Python
2 years ago
from functools import reduce def reduce2 (num,num2): return num * num2 i = [1,2,3,4,5] print(reduce(reduce2,i))

R

Python
2 years ago
def f (x): if x > 0 : return x, f (x-1) print(f (6))

Rec

Python
2 years ago
# wwwoooorrlddddd def word (x): #w = "wwwoooorrlddddd" if len (x) == 1: return x if x[0] == x[1]: return word (x[1:]) #else: #return word(x [1:]) #return x

D

Python
2 years ago
d = { "one": {"one":1, "two":2, "three":3}, "two": {"four":4, "five":5, "six":6} }

Solve 3

Python
2 years ago
def long (s): mylist =[] for a in s : if a == " ":

OOP

Python
2 years ago
class one : def __init__ (self,name_pa1): self.name1 = name_pa1 def say_hello (self): print(f"Hello {self.name1}") class two(one) : def __init__ (self,name_pa2): # self.name2 = name_pa2 one.__init__(self,self.name2) super().__init__(self.name2)

OOP1

Python
2 years ago
class one : def __init__(self,name_p1): self.name1 = name_p1 def sayhay(self): print(f"Hello {self.name1}") def o (self): print ("ggg") class two(one) : def __init__(self,name_p2): one.__init__(self,name_p2)

01 to 0-9

Python
3 years ago
a = '0b1100100' print (a[2:])

one_mycopiler

Python
3 years ago
def rec (x): if x > 0 : print(x) return x + rec (x-1) return x print (rec (5))