Assalam o Alaikum Everyone I hope all of you are fine and happy in your life. Here is my participation in the steemit contest. This is week 4 participation. This contest was organised by @kouba01. Contest is about learning python programming language. Python is huge market. We can do almost al things with python programing language. #steemexclusive
- Task 1
I use these libraries for UI.
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QLineEdit, QPushButton, QVBoxLayout, QMessageBox
This I use for the input of two string.
The main thing is here to find an intersection between 2 strings.
The program must validate that both strings contain only lowercase alphabetic characters (a-z) and are between 1 and 30 characters long. If either string is invalid, an error message is displayed.
As I mentioned above, this program gives an error because it uses the upper-case alphabet. Here is the logic of this case.
This is the right intersection.
- Task 2(Reverse String - Word Mirror)
Remainng GUI is same and and the main logic is here.
- Task 3:
I use Caesar cipher (shift by 13) encryption. This is a basic cipher in cryptography.
- Task 4:
- Task 5(Word sord by length):
All the task have Almost same GUI code and same libraries. Twiter is ban in Pakistan so I am not able to share on twitter. Thank you so much for reading this blog. I invite @ammar2021,@teukuipul87 and @isha-rehman for participate in this contest.