Skip to content

Instantly share code, notes, and snippets.

View doper0's full-sized avatar

doper0 doper0

View GitHub Profile
# my moduls #
def power(): ############################### 1. power number with another one.
y = int(input('enter a number for power '))
z = int(input('enter a number for power with it '))
s=""
o=""
z=input('write sentese for encrypt ')+' '
y=0
#y=int(input('Select a number to move the letters and encrypt it '))
for y in range(24):
for x in z:
if ord(x)>=ord('a') and ord(x)<=ord('z'):
o+=chr((ord(x)+y-ord('a'))%26+ord('a'))
else:
#Shows the Fibonacci series up to the number the user has selected
x,y=0,1
z=int(input('enter a number'))
r=0
z=z-1
while r<=z:
x,y=y,y+x
r=r+1
@doper0
doper0 / mcalc.py
Created December 29, 2018 18:50
Functional calculator
##################################################################################################
# A calculator containing all the operations of the account is rooting for the numbers entered #
# and showing the abbreviated multiplication formulas #
##################################################################################################
import math as z
x=int(input('enter a number as x '))
y=int(input('enter another number as y '))
print('x =',x)
print('y =',y)
print('root x=',z.sqrt(x))