This file contains 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
# 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 ')) |
This file contains 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
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: |
This file contains 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
#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 |
This file contains 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
################################################################################################## | |
# 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)) |