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
import random | |
from random import choice | |
user_score = 0 | |
pc_score = 0 | |
usr_choice = ['paper', 'scissor', 'rock'] | |
user_name = input('Please enter your good name: ') |
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
class ex094morse: | |
morse_alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 | |
morse_encode = ['.-', '-...', '-.-.', '-.', '.', '..-.', '--.', '....', '..', '.---', '-.-', '.-..', '--', '-.', '---', '.--.', '--.-', '.-.','...' ,'-' ,'..-' ,'...-' ,'.--' ,'-..-' ,'-.--' ,'--..' ,'-----' ,'.----','..---','...--','....-','.....','-....','--...','---..','----.'] | |
def encode(self, text): | |
store = '' | |
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
//Coded By Ex094 | |
Random rnd = new Random(); //To Generate Random Numbers for string Index | |
string password = ""; //Variable to store the final Password | |
string passlist = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./'[]~!@#$%^&*()_+=-|}{:?><"; | |
Console.WriteLine ("Enter Password Length:"); | |
string usrleng = Console.ReadLine(); //Get length from user in the form of string |
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
def bubblesort(items): | |
length = len(items) - 1 #Length of the list to be sorted | |
swapped = False #Swapping set to False as Default | |
while swapped != True: | |
for i in range(0, length): |
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
#include "stdafx.h" | |
#include "iostream" | |
#include "vector" | |
std::vector<int> merge_list(std::vector<int> left, std::vector<int> right) { | |
//This vector holds all the items in sorted form at the end | |
std::vector<int>result; | |
//These variables will be used to iterate through the items |