This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'chromoscope.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.15.9 | |
# | |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | |
# run again. Do not edit this file unless you know what you are doing. | |
This file contains hidden or 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
n=int(input("To encode text enter 1. To decode text enter 2. ")) | |
if n==1: | |
with open("encoder.py") as f: | |
exec(f.read()) | |
elif n==2: | |
with open("decoder.py") as g: | |
exec(g.read()) |
This file contains hidden or 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
n=int(input("To hide text enter 1. To unhide text enter 2. ")) | |
if n==1: | |
with open("hider.py") as f: | |
exec(f.read()) | |
elif n==2: | |
with open("unhider.py") as g: | |
exec(g.read()) |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'baseconverter.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.15.9 | |
# | |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | |
# run again. Do not edit this file unless you know what you are doing. | |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'BMI.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.15.9 | |
# | |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | |
# run again. Do not edit this file unless you know what you are doing. | |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'numeroconverter.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.15.9 | |
# | |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | |
# run again. Do not edit this file unless you know what you are doing. | |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'numeroconverter.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.15.9 | |
# | |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | |
# run again. Do not edit this file unless you know what you are doing. | |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'cryptex.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.15.9 | |
# | |
# WARNING: Any manual changes made to this file will be lost when pyuic5 is | |
# run again. Do not edit this file unless you know what you are doing. | |
This file contains hidden or 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
from tkinter import * | |
import tkinter.messagebox | |
from tkinter.ttk import Frame, Label, Entry, Button, Style | |
root = Tk() | |
root.geometry('300x300') | |
root.resizable(0,0) | |
root.title('Numerolab') | |
global expr |
This file contains hidden or 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
num=abs(int(input("Enter number: "))) | |
def rule(num): | |
stop=len(str(num)) | |
while stop > 2: | |
num=abs(int(str(num)[:stop-2])*5-int(str(num)[-2:])) | |
stop=len(str(num)) | |
if num%7==0: | |
return "Number is divisible by 7" | |
else: | |
return "Number is not divisible by 7" |