<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Python Forum - All Forums]]></title>
		<link>https://python-forum.io/</link>
		<description><![CDATA[Python Forum - https://python-forum.io]]></description>
		<pubDate>Fri, 04 Sep 2026 15:11:50 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[I'm working on a program that will log data from a CAN bus]]></title>
			<link>https://python-forum.io/thread-46401.html</link>
			<pubDate>Fri, 04 Sep 2026 07:56:15 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=44046">Selike</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46401.html</guid>
			<description><![CDATA[I'm working on a program that will log data from a CAN bus (over serial) and help me reverse engineer the messages.<br />
<br />
I'll be logging the incoming messages in a database (easy enough).<br />
<br />
Before I reinvent the wheel and write code to keep a filtered view of the records in the database up to date, is there a prebuilt control that already does this?<br />
<br />
I'm picturing something like a Tkinter Treeview populated by a SQL command that automatically displays any new record that is logged into the database which matches the SQL command.<br />
<br />
I only mention Tkinter as that's what I'm familiar with ... please let me know if this would be easier in some other GUI toolkit.]]></description>
			<content:encoded><![CDATA[I'm working on a program that will log data from a CAN bus (over serial) and help me reverse engineer the messages.<br />
<br />
I'll be logging the incoming messages in a database (easy enough).<br />
<br />
Before I reinvent the wheel and write code to keep a filtered view of the records in the database up to date, is there a prebuilt control that already does this?<br />
<br />
I'm picturing something like a Tkinter Treeview populated by a SQL command that automatically displays any new record that is logged into the database which matches the SQL command.<br />
<br />
I only mention Tkinter as that's what I'm familiar with ... please let me know if this would be easier in some other GUI toolkit.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Marc Parizeau]]></title>
			<link>https://python-forum.io/thread-46399.html</link>
			<pubDate>Mon, 31 Aug 2026 21:20:42 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=44037">VincentB</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46399.html</guid>
			<description><![CDATA[Bonjour mes pythoners préférés<br />
<br />
Je me demandais si quelqu'un pouvais me confirmer l'existence de Marc Parizeau, mettez en commentaire SVP.<br />
<br />
Bonne Journée,<br />
<br />
Vincent B]]></description>
			<content:encoded><![CDATA[Bonjour mes pythoners préférés<br />
<br />
Je me demandais si quelqu'un pouvais me confirmer l'existence de Marc Parizeau, mettez en commentaire SVP.<br />
<br />
Bonne Journée,<br />
<br />
Vincent B]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[BeautifulSoup] Prepend CRLF before insert()?]]></title>
			<link>https://python-forum.io/thread-46398.html</link>
			<pubDate>Fri, 28 Aug 2026 04:29:02 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=11957">Winfried</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46398.html</guid>
			<description><![CDATA[Hello,<br />
<br />
I need to insert an element, but can't find how to have a CRLF inserted before the element.<br />
<br />
Does someone know?<br />
<br />
Thank you.<br />
<br />
<pre class="brush: python" title="Python Code:">from bs4 import BeautifulSoup, Comment

soup = BeautifulSoup(open("input.gpx", encoding='utf-8'), features='xml')
name = soup.new_tag("name")
name.string = "blah"
doc = soup.select_one("gpx")
#How to tell BS to insert a CRLF before the new element?
#&lt;gpx&gt;&lt;name&gt;blah&lt;/name&gt;
doc.insert(0,name)</pre>---<br />
Edit: Work-around<br />
<br />
<pre class="brush: python" title="Python Code:">from bs4 import BeautifulSoup
from bs4.builder import LXMLTreeBuilderForXML

#To prevent CRLF for &lt;name&gt;
#https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/python/libraries/beautifulsoup.html
builder = LXMLTreeBuilderForXML(preserve_whitespace_tags=["name"])

soup = BeautifulSoup(open("blah.gpx", encoding='utf-8'), builder=builder,features='xml')

print(soup.prettify())</pre>]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
I need to insert an element, but can't find how to have a CRLF inserted before the element.<br />
<br />
Does someone know?<br />
<br />
Thank you.<br />
<br />
<pre class="brush: python" title="Python Code:">from bs4 import BeautifulSoup, Comment

soup = BeautifulSoup(open("input.gpx", encoding='utf-8'), features='xml')
name = soup.new_tag("name")
name.string = "blah"
doc = soup.select_one("gpx")
#How to tell BS to insert a CRLF before the new element?
#&lt;gpx&gt;&lt;name&gt;blah&lt;/name&gt;
doc.insert(0,name)</pre>---<br />
Edit: Work-around<br />
<br />
<pre class="brush: python" title="Python Code:">from bs4 import BeautifulSoup
from bs4.builder import LXMLTreeBuilderForXML

#To prevent CRLF for &lt;name&gt;
#https://michaelcurrin.github.io/dev-cheatsheets/cheatsheets/python/libraries/beautifulsoup.html
builder = LXMLTreeBuilderForXML(preserve_whitespace_tags=["name"])

soup = BeautifulSoup(open("blah.gpx", encoding='utf-8'), builder=builder,features='xml')

print(soup.prettify())</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[opencv not setting pixels]]></title>
			<link>https://python-forum.io/thread-46396.html</link>
			<pubDate>Mon, 24 Aug 2026 21:54:25 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=44028">I_huff_paint</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46396.html</guid>
			<description><![CDATA[im working on some image processing with opencv, but when i set pixels nothing actually happens. the program outputs what it should but just doesnt set the pixels, does someone know why?<br />
<br />
heres the code:<br />
<br />
<pre class="brush: python" title="Python Code:">import cv2

img = cv2.imread('peppers2.png', 0)
x = 0
y = 0
img[x,y] = 0
#print(img.shape[0])
for y in range(0, img.shape[0], 1): 
    for x in range(0, img.shape[0], 1): 
        if img[x,y] &gt;= 127:
            print("white")
            img[x,y] = 255
        else:
            print("black")
            img[x,y] = 0
        print(x,",", y)
        x + 1
        if x in [img.shape[0]-1]:
#            print("TRUE")
            x = 0
            y + 1</pre>]]></description>
			<content:encoded><![CDATA[im working on some image processing with opencv, but when i set pixels nothing actually happens. the program outputs what it should but just doesnt set the pixels, does someone know why?<br />
<br />
heres the code:<br />
<br />
<pre class="brush: python" title="Python Code:">import cv2

img = cv2.imread('peppers2.png', 0)
x = 0
y = 0
img[x,y] = 0
#print(img.shape[0])
for y in range(0, img.shape[0], 1): 
    for x in range(0, img.shape[0], 1): 
        if img[x,y] &gt;= 127:
            print("white")
            img[x,y] = 255
        else:
            print("black")
            img[x,y] = 0
        print(x,",", y)
        x + 1
        if x in [img.shape[0]-1]:
#            print("TRUE")
            x = 0
            y + 1</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[SOLVED] [csv] Update?]]></title>
			<link>https://python-forum.io/thread-46395.html</link>
			<pubDate>Thu, 20 Aug 2026 17:36:50 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=11957">Winfried</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46395.html</guid>
			<description><![CDATA[Hello,<br />
<br />
Although the csv module provides an append() method, I don't see the changes after relooping through the rows:<br />
<br />
Is it to be expected? Is there a work-around?<br />
<br />
Thank you.<br />
<br />
<pre class="brush: python" title="Python Code:">import csv

data = csv.reader(file := open("input.txt", "r"))
for row_out in data:
	row_out.append("blah")

#not updated!
file.seek(0)
for row in data:
	print(row)</pre>]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
Although the csv module provides an append() method, I don't see the changes after relooping through the rows:<br />
<br />
Is it to be expected? Is there a work-around?<br />
<br />
Thank you.<br />
<br />
<pre class="brush: python" title="Python Code:">import csv

data = csv.reader(file := open("input.txt", "r"))
for row_out in data:
	row_out.append("blah")

#not updated!
file.seek(0)
for row in data:
	print(row)</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Better way to get the last row of a csv?]]></title>
			<link>https://python-forum.io/thread-46393.html</link>
			<pubDate>Thu, 20 Aug 2026 13:26:36 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=3079">Pedroski55</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46393.html</guid>
			<description><![CDATA[I need to get the last row of my csv, the crop coordinates of an image.<br />
<br />
At the moment, I get the coordinates as below. Basically, loop through all rows until we get to the last row.<br />
<br />
Is there a quicker way to do this, i.e. get the last row of the csv? <br />
<br />
My csv will never be more than 102 rows, but imagine I had 4 million rows or more! (Put the coords in some other place?? Just thought of that!)<br />
<br />
<pre class="brush: python" title="Python Code:"># get the crop coordinates for cropping the 1-page PDFs
    def get_coords(self):
        print('********************')
        print('This get_coords(self) ')
        with open(self.AKfile) as infile:
            reader = csv.reader(infile)
            last_row = None
            for row in reader: # basically loop through all rows till none are left. Can we do this better?
                last_row = row 
            if last_row:
                print(f'The last row of the csv looks like: {last_row}')
                # need integers, not string, convert
                for i in range(len(last_row)):
                    last_row[i] = int(last_row[i])
            coords = []
            for n in range(0, len(last_row), 4):
                tup = tuple(last_row[n:n+4])
                coords.append(tup)
            print(f'The crop coordinates now are: {coords}')
            print('********************\n')
            return coords</pre>]]></description>
			<content:encoded><![CDATA[I need to get the last row of my csv, the crop coordinates of an image.<br />
<br />
At the moment, I get the coordinates as below. Basically, loop through all rows until we get to the last row.<br />
<br />
Is there a quicker way to do this, i.e. get the last row of the csv? <br />
<br />
My csv will never be more than 102 rows, but imagine I had 4 million rows or more! (Put the coords in some other place?? Just thought of that!)<br />
<br />
<pre class="brush: python" title="Python Code:"># get the crop coordinates for cropping the 1-page PDFs
    def get_coords(self):
        print('********************')
        print('This get_coords(self) ')
        with open(self.AKfile) as infile:
            reader = csv.reader(infile)
            last_row = None
            for row in reader: # basically loop through all rows till none are left. Can we do this better?
                last_row = row 
            if last_row:
                print(f'The last row of the csv looks like: {last_row}')
                # need integers, not string, convert
                for i in range(len(last_row)):
                    last_row[i] = int(last_row[i])
            coords = []
            for n in range(0, len(last_row), 4):
                tup = tuple(last_row[n:n+4])
                coords.append(tup)
            print(f'The crop coordinates now are: {coords}')
            print('********************\n')
            return coords</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[uninstallation impossible]]></title>
			<link>https://python-forum.io/thread-46392.html</link>
			<pubDate>Thu, 20 Aug 2026 08:13:42 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=44021">badinn</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46392.html</guid>
			<description><![CDATA[Hello everyone, I installed Python using the manager, but there are no programs listed in the Windows Task Manager, and the command <code class="icode">py uninstall --purge</code> doesn't uninstall anything at all. Thanks in advance. Regards.<br />
<br />
<img src="https://i.ibb.co/KpyfM6qJ/xdgsdfds.png" loading="lazy"  alt="[Image: xdgsdfds.png]" class="mycode_img" />]]></description>
			<content:encoded><![CDATA[Hello everyone, I installed Python using the manager, but there are no programs listed in the Windows Task Manager, and the command <code class="icode">py uninstall --purge</code> doesn't uninstall anything at all. Thanks in advance. Regards.<br />
<br />
<img src="https://i.ibb.co/KpyfM6qJ/xdgsdfds.png" loading="lazy"  alt="[Image: xdgsdfds.png]" class="mycode_img" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[variables in a class]]></title>
			<link>https://python-forum.io/thread-46390.html</link>
			<pubDate>Wed, 12 Aug 2026 01:30:23 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=3079">Pedroski55</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46390.html</guid>
			<description><![CDATA[I have made a class to mark my multiple choice forms.<br />
<br />
I pass 4 instance variables (I think they are called) e.g.: <code class="icode">test = markAFs('jingmao', '2026-07-24', 2, 25)</code>  These four are in <code class="icode">def __init__()</code>, along with paths to various places, depending on the first variable.<br />
<br />
But of course, I have many other variables and functions which are needed in the class. I put them before <code class="icode">def __init__()</code> like this:<br />
<br />
<pre class="brush: python" title="Python Code:">problems = []
classes = None 
pdf = None # a scanned in PDF of used Answer Forms
jpg_list = None # pdf will be split to jpgs, this is a list of pathlib paths to each jpg
AKfile = None # the Answer Keys file
AK = None # the contents of AKfile
q_indexes = None </pre>and many more.<br />
<br />
I don't know much about classes. Is this way of starting the variables OK? Or completely unnecessary?<br />
<br />
It seems, if I just write something like:<br />
<br />
<pre class="brush: python" title="Python Code:">self.sorted_contours = self.sort_contours(self, column)</pre>I still get a variable <code class="icode">self.sorted_contours</code>, even if it is not declared at the top of the class, before <code class="icode">def __init__()</code><br />
<br />
Am I wasting my time declaring the variables at the top of the class?]]></description>
			<content:encoded><![CDATA[I have made a class to mark my multiple choice forms.<br />
<br />
I pass 4 instance variables (I think they are called) e.g.: <code class="icode">test = markAFs('jingmao', '2026-07-24', 2, 25)</code>  These four are in <code class="icode">def __init__()</code>, along with paths to various places, depending on the first variable.<br />
<br />
But of course, I have many other variables and functions which are needed in the class. I put them before <code class="icode">def __init__()</code> like this:<br />
<br />
<pre class="brush: python" title="Python Code:">problems = []
classes = None 
pdf = None # a scanned in PDF of used Answer Forms
jpg_list = None # pdf will be split to jpgs, this is a list of pathlib paths to each jpg
AKfile = None # the Answer Keys file
AK = None # the contents of AKfile
q_indexes = None </pre>and many more.<br />
<br />
I don't know much about classes. Is this way of starting the variables OK? Or completely unnecessary?<br />
<br />
It seems, if I just write something like:<br />
<br />
<pre class="brush: python" title="Python Code:">self.sorted_contours = self.sort_contours(self, column)</pre>I still get a variable <code class="icode">self.sorted_contours</code>, even if it is not declared at the top of the class, before <code class="icode">def __init__()</code><br />
<br />
Am I wasting my time declaring the variables at the top of the class?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Cant bind the return key.]]></title>
			<link>https://python-forum.io/thread-46388.html</link>
			<pubDate>Sun, 09 Aug 2026 07:27:28 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=31188">angus1964</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46388.html</guid>
			<description><![CDATA[<pre class="brush: python" title="Python Code:">import tkinter as tk
from tkinter import ttk
import sqlite3 as sq
import os



class player():
    def __init__(self):
        
        # stats for each player
        #these are used in a loop to populate the players frames

        self.stats = {
            "Name:-": "Player",
            "sets": 0,
            "legs": 0,
            "180": 0,
            "160": 0,
            "140": 0,
            "120": 0,
            "100": 0,
            "80": 0,
            "60": 0,
            "Average": 0,
            "Darts at double": 0,
            "Doubles Hit": 0,
            "Checkout %": 0,
            
        }

        self.score = {
            "remaining": 501,
            "totalscore": 0,
            "totaldarts": 0,
            
        }

    

    def score_entered(self, score):
        score = score
        self.score['remaining'] -= score
        self.score['totalscore'] += score
        if score == 180:
            self.stats['180'] += 1
        elif score &gt;= 160:
            self.stats['160'] += 1
        elif score &gt;= 140:
            self.stats['140'] += 1
        elif score &gt;= 120:
            self.stats['120'] += 1
        elif score &gt;= 100:
            self.stats['100'] += 1
        elif score &gt;= 80:
            self.stats['80'] += 1
        elif score &gt;= 60:
            self.stats['60'] += 1
        
        if self.score['remaining'] == 0:
            self.leg_won()
        elif self.score['remaining'] &lt;= 50:
            self.darts_at_double()
        
        self.score['totaldarts'] += 3
        self.calculate_averages()

        
        return

    def darts_at_double(self):
        self.doubles_window = tk.Toplevel()
        tk.Label(self.doubles_window, text="Number of Darts at Doubles").grid(row=0, column=0)
        self.darts_doubles = tk.Spinbox(self.doubles_window, values=(0,1,2,3))
        self.darts_doubles.grid(row=0, column=1)
        tk.Button(self.doubles_window, text="Enter ", command=self.doubles_button_pressed).grid(row=1, column=1, columnspan=2)
        self.doubles_window.attributes('-topmost', 'true')
        

    def doubles_button_pressed(self):
        at_doubles = int(self.darts_doubles.get())
        self.stats['Darts at double'] += at_doubles
        self.doubles_window.destroy()
        game.player_to_throw()

    def calculate_averages(self):
        self.stats['Average'] = round(3*(self.score['totalscore']/self.score['totaldarts']), 1)
        
    def leg_won(self):
        self.leg_window = tk.Toplevel()
        tk.Label(self.leg_window, text="Number of Darts Used").grid(row=0, column=0)
        self.darts_used = tk.Spinbox(self.leg_window, values=(0,1,2,3))
        self.darts_used.grid(row=0, column=1)
        tk.Label(self.leg_window, text="Number of Darts at Doubles").grid(row=1, column=0)
        self.darts_doubles = tk.Spinbox(self.leg_window, values=(0,1,2,3))
        self.darts_doubles.grid(row=1, column=1)
        tk.Button(self.leg_window, text='Enter', command=self.leg_button_pressed).grid(row=2, column=1, columnspan=2)
        self.leg_window.attributes('-topmost', 'true')

    def leg_button_pressed(self):
        self.stats['legs'] += 1
        self.stats['Doubles Hit'] += 1
        doubledarts = int(self.darts_doubles.get())
        self.stats['Darts at double'] += doubledarts
        self.stats["Checkout %"] = (self.stats['Doubles Hit']/self.stats['Darts at double'])*100
        
        totaldarts = int(self.darts_used.get())
        self.score['totaldarts'] += totaldarts
        self.leg_window.destroy()
        if self.stats['legs'] == game.legs_to_win:
            self.set_won()
        else:
            game.leg_to_play += 1
            game.to_throw()
        

    def set_won(self):
        print('at sets')
        self.stats['sets'] += 1
        if self.stats['sets'] == game.sets_to_win:
            self.game_won()
        else:
            game.player1.stats['legs'] = 0
            game.player2.stats['legs'] = 0
            game.leg_to_play = 1
            game.set_to_play += 1
            game.to_throw()




    def game_won(self):
        print("Game over")
        

# main class window
class FiveOhOne(tk.Tk):
    def __init__(self):
        super().__init__()
        self.game_frame = tk.Frame(self)
        self.game_frame.grid(row=0, column=0)
        self.player1 = player()
        self.player2 = player()
        self.add_frames()
        self.setup_screen()
        self.new_game()
        
    #sets out the three main frames in the main window.
    def add_frames(self):
        self.frame_one = tk.Frame(self.game_frame)
        self.frame_one.grid(row=0, column=0)
        self.frame_three = tk.Frame(self.game_frame)
        self.frame_three.grid(row=0, column=1)
        self.frame_two = tk.Frame(self.game_frame)
        self.frame_two.grid(row=0, column=2)

     #displays the inital screen
     # keeps the entry buttons outwith screen refresh as they are static.  
    def setup_screen(self):
        self.screen_refresh()
        frame2 = self.frame_three
        self.pl1_entry = tk.Button(frame2, text="Enter Score",command=self.button_pressed)
        self.pl1_entry.bind('&lt;&lt;Return&gt;&gt;', self.button_pressed)
        self.score_ent = tk.Entry(frame2, width=5)
        self.score_ent.grid(row=2,column=0, columnspan=2)
        self.pl1_entry.grid(row=3, column=0, columnspan=2)
        
        

    
    # populates the three frames. can be called anytime the stats cha
    def screen_refresh(self):

        player1 = self.player1.stats
        frame = self.frame_one
        rownum = 0
        for (key, value) in player1.items():
            tk.Label(frame, text=key,relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=0, sticky='e,w')
            tk.Label(frame, text=value,relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=1,sticky='e,w')
            rownum += 1
        player2 = self.player2.stats
        frame1 = self.frame_two
        rownum = 0
        for (key, value) in player2.items():
            tk.Label(frame1, text=key, relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=0, sticky='e,w')
            tk.Label(frame1, text=value, relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=1, sticky='e,w')
            rownum += 1
        frame2 = self.frame_three
        tk.Label(frame2, text=self.player1.stats["Name:-"], font=(None, 25)).grid(row=0, column=0)
        tk.Label(frame2, text=self.player2.stats["Name:-"], font=(None, 25)).grid(row=0, column=1)
        self.pl1_remaining = tk.Label(frame2, text=self.player1.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl1_remaining.grid(row=1, column=0)
        self.pl1_remaining.configure(bg="white")
        self.pl2_remaining = tk.Label(frame2, text=self.player2.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl2_remaining.grid(row=1, column=1)
        self.pl2_remaining.configure(bg="white")
        
        
        

    def new_game(self):
        self.win = tk.Toplevel()
        tk.Label(self.win, text="Player 1:").grid(row=0, column=0)
        self.pl1ent = tk.Entry(self.win)
        self.pl1ent.grid(row=0,column=1)
        tk.Label(self.win, text="Player 2:").grid(row=1, column=0)
        self.pl2ent = tk.Entry(self.win)
        self.pl2ent.grid(row=1,column=1)
        tk. Label(self.win, text="Sets: First to:-").grid(row=2, column=0)
        self.sets_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.sets_spinbox.grid(row=2, column=1)
        tk.Label(self.win, text="Legs: First to:-").grid(row=3, column=0)
        self.legs_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.legs_spinbox.grid(row=3, column=1)
        tk.Button(self.win, text="Start", command=self.start_game).grid(row=4, column=1,columnspan=2)

    def start_game(self):
        legs_to_win = int(self.legs_spinbox.get()) # set variables for legs and sets 
        sets_to_win = int(self.sets_spinbox.get())
        self.legs_to_win = legs_to_win/2 + 1 # once a leg is won the players total will be compared to this
        self.sets_to_win = sets_to_win/2 + 1 # once a set is won the players total will be compared to this
        self.player1.stats["Name:-"]= self.pl1ent.get()  # set the players names
        self.player2.stats["Name:-"] = self.pl2ent.get()
        self.leg_to_play = 0
        self.set_to_play = 0
        self.screen_refresh()
        self.to_throw()

    def to_throw(self): # called on al the start of a  leg
        self.player1.score['remaining'] = 501
        self.player2.score['remaining'] = 501
        self.screen_refresh()
        if self.set_to_play % 2 != 0:
            if self.leg_to_play %2 != 0:
                self.current_player = 1
                self.player_to_throw()
            else:
                self.current_player = 2
                self.player_to_throw()
        else:
            if self.leg_to_play %2 != 0:
                self.current_player = 2
                self.player_to_throw()
            else:
                self.current_player = 1
                self.player_to_throw()

    def player_to_throw(self): # callled for each throw
        if self.current_player == 1:
            self.screen_refresh()
            self.pl1_remaining.configure(bg="yellow")
            self.pl2_remaining.configure(bg="white")
            self.score_ent.delete(0, tk.END)
            self.score_ent.focus()
        else:
            self.screen_refresh()
            self.pl2_remaining.configure(bg="yellow")
            self.pl1_remaining.configure(bg="white")
            self.score_ent.delete(0, tk.END)
            self.score_ent.focus()

    def button_pressed(self,):
        score = int(self.score_ent.get())
        if self.current_player == 1:
            self.current_player = 2
            self.player1.score_entered(score)
            self.player_to_throw()

        else:
            self.current_player = 1
            self.player2.score_entered(score)
            self.player_to_throw()

if __name__ == "__main__":
    game = FiveOhOne()
    game.mainloop()
    </pre>The above program is working as i want it. <br />
The problem i am having comes in line 164 where i try to bind the return key to a function. <br />
This does not work, clicking the button does.<br />
I have tried other options like binding to the frame but with no success.]]></description>
			<content:encoded><![CDATA[<pre class="brush: python" title="Python Code:">import tkinter as tk
from tkinter import ttk
import sqlite3 as sq
import os



class player():
    def __init__(self):
        
        # stats for each player
        #these are used in a loop to populate the players frames

        self.stats = {
            "Name:-": "Player",
            "sets": 0,
            "legs": 0,
            "180": 0,
            "160": 0,
            "140": 0,
            "120": 0,
            "100": 0,
            "80": 0,
            "60": 0,
            "Average": 0,
            "Darts at double": 0,
            "Doubles Hit": 0,
            "Checkout %": 0,
            
        }

        self.score = {
            "remaining": 501,
            "totalscore": 0,
            "totaldarts": 0,
            
        }

    

    def score_entered(self, score):
        score = score
        self.score['remaining'] -= score
        self.score['totalscore'] += score
        if score == 180:
            self.stats['180'] += 1
        elif score &gt;= 160:
            self.stats['160'] += 1
        elif score &gt;= 140:
            self.stats['140'] += 1
        elif score &gt;= 120:
            self.stats['120'] += 1
        elif score &gt;= 100:
            self.stats['100'] += 1
        elif score &gt;= 80:
            self.stats['80'] += 1
        elif score &gt;= 60:
            self.stats['60'] += 1
        
        if self.score['remaining'] == 0:
            self.leg_won()
        elif self.score['remaining'] &lt;= 50:
            self.darts_at_double()
        
        self.score['totaldarts'] += 3
        self.calculate_averages()

        
        return

    def darts_at_double(self):
        self.doubles_window = tk.Toplevel()
        tk.Label(self.doubles_window, text="Number of Darts at Doubles").grid(row=0, column=0)
        self.darts_doubles = tk.Spinbox(self.doubles_window, values=(0,1,2,3))
        self.darts_doubles.grid(row=0, column=1)
        tk.Button(self.doubles_window, text="Enter ", command=self.doubles_button_pressed).grid(row=1, column=1, columnspan=2)
        self.doubles_window.attributes('-topmost', 'true')
        

    def doubles_button_pressed(self):
        at_doubles = int(self.darts_doubles.get())
        self.stats['Darts at double'] += at_doubles
        self.doubles_window.destroy()
        game.player_to_throw()

    def calculate_averages(self):
        self.stats['Average'] = round(3*(self.score['totalscore']/self.score['totaldarts']), 1)
        
    def leg_won(self):
        self.leg_window = tk.Toplevel()
        tk.Label(self.leg_window, text="Number of Darts Used").grid(row=0, column=0)
        self.darts_used = tk.Spinbox(self.leg_window, values=(0,1,2,3))
        self.darts_used.grid(row=0, column=1)
        tk.Label(self.leg_window, text="Number of Darts at Doubles").grid(row=1, column=0)
        self.darts_doubles = tk.Spinbox(self.leg_window, values=(0,1,2,3))
        self.darts_doubles.grid(row=1, column=1)
        tk.Button(self.leg_window, text='Enter', command=self.leg_button_pressed).grid(row=2, column=1, columnspan=2)
        self.leg_window.attributes('-topmost', 'true')

    def leg_button_pressed(self):
        self.stats['legs'] += 1
        self.stats['Doubles Hit'] += 1
        doubledarts = int(self.darts_doubles.get())
        self.stats['Darts at double'] += doubledarts
        self.stats["Checkout %"] = (self.stats['Doubles Hit']/self.stats['Darts at double'])*100
        
        totaldarts = int(self.darts_used.get())
        self.score['totaldarts'] += totaldarts
        self.leg_window.destroy()
        if self.stats['legs'] == game.legs_to_win:
            self.set_won()
        else:
            game.leg_to_play += 1
            game.to_throw()
        

    def set_won(self):
        print('at sets')
        self.stats['sets'] += 1
        if self.stats['sets'] == game.sets_to_win:
            self.game_won()
        else:
            game.player1.stats['legs'] = 0
            game.player2.stats['legs'] = 0
            game.leg_to_play = 1
            game.set_to_play += 1
            game.to_throw()




    def game_won(self):
        print("Game over")
        

# main class window
class FiveOhOne(tk.Tk):
    def __init__(self):
        super().__init__()
        self.game_frame = tk.Frame(self)
        self.game_frame.grid(row=0, column=0)
        self.player1 = player()
        self.player2 = player()
        self.add_frames()
        self.setup_screen()
        self.new_game()
        
    #sets out the three main frames in the main window.
    def add_frames(self):
        self.frame_one = tk.Frame(self.game_frame)
        self.frame_one.grid(row=0, column=0)
        self.frame_three = tk.Frame(self.game_frame)
        self.frame_three.grid(row=0, column=1)
        self.frame_two = tk.Frame(self.game_frame)
        self.frame_two.grid(row=0, column=2)

     #displays the inital screen
     # keeps the entry buttons outwith screen refresh as they are static.  
    def setup_screen(self):
        self.screen_refresh()
        frame2 = self.frame_three
        self.pl1_entry = tk.Button(frame2, text="Enter Score",command=self.button_pressed)
        self.pl1_entry.bind('&lt;&lt;Return&gt;&gt;', self.button_pressed)
        self.score_ent = tk.Entry(frame2, width=5)
        self.score_ent.grid(row=2,column=0, columnspan=2)
        self.pl1_entry.grid(row=3, column=0, columnspan=2)
        
        

    
    # populates the three frames. can be called anytime the stats cha
    def screen_refresh(self):

        player1 = self.player1.stats
        frame = self.frame_one
        rownum = 0
        for (key, value) in player1.items():
            tk.Label(frame, text=key,relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=0, sticky='e,w')
            tk.Label(frame, text=value,relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=1,sticky='e,w')
            rownum += 1
        player2 = self.player2.stats
        frame1 = self.frame_two
        rownum = 0
        for (key, value) in player2.items():
            tk.Label(frame1, text=key, relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=0, sticky='e,w')
            tk.Label(frame1, text=value, relief="raised", anchor="center",font=(None, 25)).grid(row=rownum, column=1, sticky='e,w')
            rownum += 1
        frame2 = self.frame_three
        tk.Label(frame2, text=self.player1.stats["Name:-"], font=(None, 25)).grid(row=0, column=0)
        tk.Label(frame2, text=self.player2.stats["Name:-"], font=(None, 25)).grid(row=0, column=1)
        self.pl1_remaining = tk.Label(frame2, text=self.player1.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl1_remaining.grid(row=1, column=0)
        self.pl1_remaining.configure(bg="white")
        self.pl2_remaining = tk.Label(frame2, text=self.player2.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl2_remaining.grid(row=1, column=1)
        self.pl2_remaining.configure(bg="white")
        
        
        

    def new_game(self):
        self.win = tk.Toplevel()
        tk.Label(self.win, text="Player 1:").grid(row=0, column=0)
        self.pl1ent = tk.Entry(self.win)
        self.pl1ent.grid(row=0,column=1)
        tk.Label(self.win, text="Player 2:").grid(row=1, column=0)
        self.pl2ent = tk.Entry(self.win)
        self.pl2ent.grid(row=1,column=1)
        tk. Label(self.win, text="Sets: First to:-").grid(row=2, column=0)
        self.sets_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.sets_spinbox.grid(row=2, column=1)
        tk.Label(self.win, text="Legs: First to:-").grid(row=3, column=0)
        self.legs_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.legs_spinbox.grid(row=3, column=1)
        tk.Button(self.win, text="Start", command=self.start_game).grid(row=4, column=1,columnspan=2)

    def start_game(self):
        legs_to_win = int(self.legs_spinbox.get()) # set variables for legs and sets 
        sets_to_win = int(self.sets_spinbox.get())
        self.legs_to_win = legs_to_win/2 + 1 # once a leg is won the players total will be compared to this
        self.sets_to_win = sets_to_win/2 + 1 # once a set is won the players total will be compared to this
        self.player1.stats["Name:-"]= self.pl1ent.get()  # set the players names
        self.player2.stats["Name:-"] = self.pl2ent.get()
        self.leg_to_play = 0
        self.set_to_play = 0
        self.screen_refresh()
        self.to_throw()

    def to_throw(self): # called on al the start of a  leg
        self.player1.score['remaining'] = 501
        self.player2.score['remaining'] = 501
        self.screen_refresh()
        if self.set_to_play % 2 != 0:
            if self.leg_to_play %2 != 0:
                self.current_player = 1
                self.player_to_throw()
            else:
                self.current_player = 2
                self.player_to_throw()
        else:
            if self.leg_to_play %2 != 0:
                self.current_player = 2
                self.player_to_throw()
            else:
                self.current_player = 1
                self.player_to_throw()

    def player_to_throw(self): # callled for each throw
        if self.current_player == 1:
            self.screen_refresh()
            self.pl1_remaining.configure(bg="yellow")
            self.pl2_remaining.configure(bg="white")
            self.score_ent.delete(0, tk.END)
            self.score_ent.focus()
        else:
            self.screen_refresh()
            self.pl2_remaining.configure(bg="yellow")
            self.pl1_remaining.configure(bg="white")
            self.score_ent.delete(0, tk.END)
            self.score_ent.focus()

    def button_pressed(self,):
        score = int(self.score_ent.get())
        if self.current_player == 1:
            self.current_player = 2
            self.player1.score_entered(score)
            self.player_to_throw()

        else:
            self.current_player = 1
            self.player2.score_entered(score)
            self.player_to_throw()

if __name__ == "__main__":
    game = FiveOhOne()
    game.mainloop()
    </pre>The above program is working as i want it. <br />
The problem i am having comes in line 164 where i try to bind the return key to a function. <br />
This does not work, clicking the button does.<br />
I have tried other options like binding to the frame but with no success.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[SOLVED] [BeautifulSoup] Editing string?]]></title>
			<link>https://python-forum.io/thread-46386.html</link>
			<pubDate>Thu, 06 Aug 2026 14:55:50 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=11957">Winfried</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46386.html</guid>
			<description><![CDATA[Hello,<br />
<br />
Google didn't help.<br />
<br />
What is the correct way to edit an element's string? Do I need to build a whole new element with BS() and use replace_with() just to remove a bit within a string?<br />
<br />
Thank you.<br />
<br />
<pre class="brush: python" title="Python Code:">for wpt in soup("wpt"):
	if (desc := wpt.find('desc')):
		print("B4:", desc.string)
		output = desc.string.replace(" website=", "")
		#no change
		print("After:", desc.string)</pre>]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
Google didn't help.<br />
<br />
What is the correct way to edit an element's string? Do I need to build a whole new element with BS() and use replace_with() just to remove a bit within a string?<br />
<br />
Thank you.<br />
<br />
<pre class="brush: python" title="Python Code:">for wpt in soup("wpt"):
	if (desc := wpt.find('desc')):
		print("B4:", desc.string)
		output = desc.string.replace(" website=", "")
		#no change
		print("After:", desc.string)</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Error message about class attribute.]]></title>
			<link>https://python-forum.io/thread-46384.html</link>
			<pubDate>Wed, 05 Aug 2026 14:10:44 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=31188">angus1964</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46384.html</guid>
			<description><![CDATA[<pre class="brush: python" title="Python Code:">import tkinter as tk
from tkinter import ttk

class Player():
    def __init__(self):
            
            # stats for each player
            #these are used in a loop to populate the players frames
    
            self.stats = {
                "Name:-": "Player",
                "sets": 0,
                "legs": 0,
                "180": 0,
                "160": 0,
                "140": 0,
                "120": 0,
                "100": 0,
                "80": 0,
                "60": 0,
                "Average": 0,
                "Darts at double": 0,
                "Doubles Hit": 0,
                "Checkout %": 0,
                
            }

            self.score = {
                        "remaining": 501,
                        "totalscore": 0,
                        "totaldarts": 0,
                        
            }

    def score_entered(self, score):
        score = score
        self.score['remaining'] -= score
        self.score['totalscore'] += score
        if score == 180:
            self.stats['180'] += 1
        elif score &gt;= 160:
            self.stats['160'] += 1
        elif score &gt;= 140:
            self.stats['140'] += 1
        elif score &gt;= 120:
            self.stats['120'] += 1
        elif score &gt;= 100:
            self.stats['100'] += 1
        elif score &gt;= 80:
            self.stats['80'] += 1
        elif score &gt;= 60:
            self.stats['60'] += 1
            
        if self.score['remaining'] == 0:
            self.leg_won()
        elif self.score['remaining'] &lt;= 50:
            self.darts_at_double()
            
        self.score['totaldarts'] += 3
        self.calculate_averages()
    
            
        return


class App(tk.Tk):
    def __init__(self ):
        super().__init__()
        
        self.title('Darts')
        self.geometry('1200x900')
        player1 = Player()
        player2 = Player()
        
        player1_frame = PlayerFrame(self, player1)
        score_frame = ScoreWindow(self, player1, player2)
        player2_frame =PlayerFrame(self, player2)
        
        print('two players created')
        self.game = Game(player1, player2, player1_frame, score_frame, player2_frame)
        
    
        self.mainloop()
       

class PlayerFrame(ttk.Frame):
    def __init__(self, parent, player):
        super().__init__()
        self.pack(side = 'left', expand = True, fill = 'both')
        self.player = player
        print(self.player.stats['sets'])
        self.player1 = self.player.stats
        self.screen_refresh()

    def screen_refresh(self):
        print(self.player.stats['sets'])
        rownum = 0
        for (key, value) in self.player1.items():
            tk.Label(self, text=key, font=(None, 25)).grid(row=rownum, column=0)
            tk.Label(self, text=value, font=(None, 25)).grid(row=rownum, column=1)
            rownum += 1
        
        
        

class ScoreWindow(ttk.Frame):
    def __init__(self, parent, player1, player2):
        super().__init__()
        self.pack(side = 'left', expand = True, fill = 'both')
        self.player1 = player1
        self.player2 = player2
        tk.Label(self, text=self.player1.stats["Name:-"], font=(None, 25)).grid(row=0, column=0)
        tk.Label(self, text=self.player2.stats["Name:-"], font=(None, 25)).grid(row=0, column=1)
        self.pl1_remaining = tk.Label(self, text=self.player1.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl1_remaining.grid(row=1, column=0)
        self.pl1_remaining.configure(bg="white")
        self.pl2_remaining = tk.Label(self, text=self.player2.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl2_remaining.grid(row=1, column=1)
        self.pl2_remaining.configure(bg="white")

        self.pl1_entry = tk.Button(self, text="Enter Score", command=self.button_pressed)
        self.score_ent = tk.Entry(self, width=5)
        self.score_ent.grid(row=2,column=0, columnspan=2)
        self.pl1_entry.grid(row=3, column=0, columnspan=2)
        self.screen_refresh()

    def screen_refresh(self):
        self.pl1_remaining = tk.Label(self, text=self.player1.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl1_remaining.grid(row=1, column=0)
        self.pl1_remaining.configure(bg="white")
        self.pl2_remaining = tk.Label(self, text=self.player2.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl2_remaining.grid(row=1, column=1)
        self.pl2_remaining.configure(bg="white")
        
        self.pl1_entry = tk.Button(self, text="Enter Score", command=self.button_pressed)
        self.score_ent = tk.Entry(self, width=5)
        self.score_ent.grid(row=2,column=0, columnspan=2)
        self.pl1_entry.grid(row=3, column=0, columnspan=2)

    def button_pressed(self):
        score = int(self.score_ent.get())
        App.game.score_entered(score)


class Game():
    def __init__(self,player1, player2, player1_frame, score_frame, player2_frame):
        self.player1 = player1
        self.player2 = player2
        self.player1_frame = player1_frame
        self.score_frame = score_frame
        self.player2_frame = player2_frame
        self.new_game()
        



    def new_game(self):
        self.win = tk.Toplevel()
        tk.Label(self.win, text="Player 1:").grid(row=0, column=0)
        self.pl1ent = tk.Entry(self.win)
        self.pl1ent.grid(row=0,column=1)
        tk.Label(self.win, text="Player 2:").grid(row=1, column=0)
        self.pl2ent = tk.Entry(self.win)
        self.pl2ent.grid(row=1,column=1)
        tk. Label(self.win, text="Sets: First to:-").grid(row=2, column=0)
        self.sets_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.sets_spinbox.grid(row=2, column=1)
        tk.Label(self.win, text="Legs: First to:-").grid(row=3, column=0)
        self.legs_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.legs_spinbox.grid(row=3, column=1)
        tk.Button(self.win, text="Start", command=self.start_game).grid(row=4, column=1,columnspan=2)
        
    def start_game(self):
        legs_to_win = int(self.legs_spinbox.get()) # set variables for legs and sets 
        sets_to_win = int(self.sets_spinbox.get())
        self.legs_to_win = legs_to_win/2 + 1 # once a leg is won the players total will be compared to this
        self.sets_to_win = sets_to_win/2 + 1 # once a set is won the players total will be compared to this
        self.player1.stats["Name:-"]= self.pl1ent.get()  # set the players names
        self.player2.stats["Name:-"] = self.pl2ent.get()
        self.leg_to_play = 0
        self.set_to_play = 0
        self.player1_frame.screen_refresh()
        self.player2_frame.screen_refresh()
        self.to_throw()

    def to_throw(self): # called on al the start of a  leg
        self.player1.score['remaining'] = 501
        self.player2.score['remaining'] = 501
        self.score_frame.screen_refresh()
        
        if self.set_to_play % 2 != 0:
            if self.leg_to_play %2 != 0:
                self.current_player = 1
                self.player_to_throw()
            else:
                self.current_player = 2
                self.player_to_throw()
        else:
            if self.leg_to_play %2 != 0:
                self.current_player = 2
                self.player_to_throw()
            else:
                self.current_player = 1
                self.player_to_throw()
    
    def player_to_throw(self): # callled for each throw
        if self.current_player == 1:
            self.score_frame.screen_refresh()
            self.score_frame.pl1_remaining.configure(bg="yellow")
            self.score_frame.pl2_remaining.configure(bg="white")
            self.score_frame.score_ent.delete(0, tk.END)
            self.score_frame.score_ent.focus()
        else:
            self.score_frame.screen_refresh()
            self.score_frame.pl2_remaining.configure(bg="yellow")
            self.score_frame.pl1_remaining.configure(bg="white")
            self.score_frame.score_ent.delete(0, tk.END)
            self.score_frame.score_ent.focus()

    def score_entered(self, score):
        if self.current_player == 1:
            self.current_player = 2
            self.player1.score_entered(score)
            self.player_to_throw()
        
        else:
            self.current_player = 1
            self.player2.score_entered(score)
            self.player_to_throw()

    


if __name__ == "__main__":
    App()
    </pre>When i run the above code, it runs, I get the new game screen and can enter names. Once that is done when i enter a score get the following error,<pre><code class="codeblock error"><div class="title">Error:</div>AttributeError: type object 'App' has no attribute 'game'</code></pre>.<br />
<br />
I have tried various solutions but all have the same error. <br />
<br />
I am only looking for an quick work around for this error, as the is still quite a lot of work to do on the program, so looking to keep the structure as is.]]></description>
			<content:encoded><![CDATA[<pre class="brush: python" title="Python Code:">import tkinter as tk
from tkinter import ttk

class Player():
    def __init__(self):
            
            # stats for each player
            #these are used in a loop to populate the players frames
    
            self.stats = {
                "Name:-": "Player",
                "sets": 0,
                "legs": 0,
                "180": 0,
                "160": 0,
                "140": 0,
                "120": 0,
                "100": 0,
                "80": 0,
                "60": 0,
                "Average": 0,
                "Darts at double": 0,
                "Doubles Hit": 0,
                "Checkout %": 0,
                
            }

            self.score = {
                        "remaining": 501,
                        "totalscore": 0,
                        "totaldarts": 0,
                        
            }

    def score_entered(self, score):
        score = score
        self.score['remaining'] -= score
        self.score['totalscore'] += score
        if score == 180:
            self.stats['180'] += 1
        elif score &gt;= 160:
            self.stats['160'] += 1
        elif score &gt;= 140:
            self.stats['140'] += 1
        elif score &gt;= 120:
            self.stats['120'] += 1
        elif score &gt;= 100:
            self.stats['100'] += 1
        elif score &gt;= 80:
            self.stats['80'] += 1
        elif score &gt;= 60:
            self.stats['60'] += 1
            
        if self.score['remaining'] == 0:
            self.leg_won()
        elif self.score['remaining'] &lt;= 50:
            self.darts_at_double()
            
        self.score['totaldarts'] += 3
        self.calculate_averages()
    
            
        return


class App(tk.Tk):
    def __init__(self ):
        super().__init__()
        
        self.title('Darts')
        self.geometry('1200x900')
        player1 = Player()
        player2 = Player()
        
        player1_frame = PlayerFrame(self, player1)
        score_frame = ScoreWindow(self, player1, player2)
        player2_frame =PlayerFrame(self, player2)
        
        print('two players created')
        self.game = Game(player1, player2, player1_frame, score_frame, player2_frame)
        
    
        self.mainloop()
       

class PlayerFrame(ttk.Frame):
    def __init__(self, parent, player):
        super().__init__()
        self.pack(side = 'left', expand = True, fill = 'both')
        self.player = player
        print(self.player.stats['sets'])
        self.player1 = self.player.stats
        self.screen_refresh()

    def screen_refresh(self):
        print(self.player.stats['sets'])
        rownum = 0
        for (key, value) in self.player1.items():
            tk.Label(self, text=key, font=(None, 25)).grid(row=rownum, column=0)
            tk.Label(self, text=value, font=(None, 25)).grid(row=rownum, column=1)
            rownum += 1
        
        
        

class ScoreWindow(ttk.Frame):
    def __init__(self, parent, player1, player2):
        super().__init__()
        self.pack(side = 'left', expand = True, fill = 'both')
        self.player1 = player1
        self.player2 = player2
        tk.Label(self, text=self.player1.stats["Name:-"], font=(None, 25)).grid(row=0, column=0)
        tk.Label(self, text=self.player2.stats["Name:-"], font=(None, 25)).grid(row=0, column=1)
        self.pl1_remaining = tk.Label(self, text=self.player1.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl1_remaining.grid(row=1, column=0)
        self.pl1_remaining.configure(bg="white")
        self.pl2_remaining = tk.Label(self, text=self.player2.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl2_remaining.grid(row=1, column=1)
        self.pl2_remaining.configure(bg="white")

        self.pl1_entry = tk.Button(self, text="Enter Score", command=self.button_pressed)
        self.score_ent = tk.Entry(self, width=5)
        self.score_ent.grid(row=2,column=0, columnspan=2)
        self.pl1_entry.grid(row=3, column=0, columnspan=2)
        self.screen_refresh()

    def screen_refresh(self):
        self.pl1_remaining = tk.Label(self, text=self.player1.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl1_remaining.grid(row=1, column=0)
        self.pl1_remaining.configure(bg="white")
        self.pl2_remaining = tk.Label(self, text=self.player2.score["remaining"], font=(None, 40), width=3, height=1)
        self.pl2_remaining.grid(row=1, column=1)
        self.pl2_remaining.configure(bg="white")
        
        self.pl1_entry = tk.Button(self, text="Enter Score", command=self.button_pressed)
        self.score_ent = tk.Entry(self, width=5)
        self.score_ent.grid(row=2,column=0, columnspan=2)
        self.pl1_entry.grid(row=3, column=0, columnspan=2)

    def button_pressed(self):
        score = int(self.score_ent.get())
        App.game.score_entered(score)


class Game():
    def __init__(self,player1, player2, player1_frame, score_frame, player2_frame):
        self.player1 = player1
        self.player2 = player2
        self.player1_frame = player1_frame
        self.score_frame = score_frame
        self.player2_frame = player2_frame
        self.new_game()
        



    def new_game(self):
        self.win = tk.Toplevel()
        tk.Label(self.win, text="Player 1:").grid(row=0, column=0)
        self.pl1ent = tk.Entry(self.win)
        self.pl1ent.grid(row=0,column=1)
        tk.Label(self.win, text="Player 2:").grid(row=1, column=0)
        self.pl2ent = tk.Entry(self.win)
        self.pl2ent.grid(row=1,column=1)
        tk. Label(self.win, text="Sets: First to:-").grid(row=2, column=0)
        self.sets_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.sets_spinbox.grid(row=2, column=1)
        tk.Label(self.win, text="Legs: First to:-").grid(row=3, column=0)
        self.legs_spinbox = tk.Spinbox(self.win, values=(1,2,3,4))
        self.legs_spinbox.grid(row=3, column=1)
        tk.Button(self.win, text="Start", command=self.start_game).grid(row=4, column=1,columnspan=2)
        
    def start_game(self):
        legs_to_win = int(self.legs_spinbox.get()) # set variables for legs and sets 
        sets_to_win = int(self.sets_spinbox.get())
        self.legs_to_win = legs_to_win/2 + 1 # once a leg is won the players total will be compared to this
        self.sets_to_win = sets_to_win/2 + 1 # once a set is won the players total will be compared to this
        self.player1.stats["Name:-"]= self.pl1ent.get()  # set the players names
        self.player2.stats["Name:-"] = self.pl2ent.get()
        self.leg_to_play = 0
        self.set_to_play = 0
        self.player1_frame.screen_refresh()
        self.player2_frame.screen_refresh()
        self.to_throw()

    def to_throw(self): # called on al the start of a  leg
        self.player1.score['remaining'] = 501
        self.player2.score['remaining'] = 501
        self.score_frame.screen_refresh()
        
        if self.set_to_play % 2 != 0:
            if self.leg_to_play %2 != 0:
                self.current_player = 1
                self.player_to_throw()
            else:
                self.current_player = 2
                self.player_to_throw()
        else:
            if self.leg_to_play %2 != 0:
                self.current_player = 2
                self.player_to_throw()
            else:
                self.current_player = 1
                self.player_to_throw()
    
    def player_to_throw(self): # callled for each throw
        if self.current_player == 1:
            self.score_frame.screen_refresh()
            self.score_frame.pl1_remaining.configure(bg="yellow")
            self.score_frame.pl2_remaining.configure(bg="white")
            self.score_frame.score_ent.delete(0, tk.END)
            self.score_frame.score_ent.focus()
        else:
            self.score_frame.screen_refresh()
            self.score_frame.pl2_remaining.configure(bg="yellow")
            self.score_frame.pl1_remaining.configure(bg="white")
            self.score_frame.score_ent.delete(0, tk.END)
            self.score_frame.score_ent.focus()

    def score_entered(self, score):
        if self.current_player == 1:
            self.current_player = 2
            self.player1.score_entered(score)
            self.player_to_throw()
        
        else:
            self.current_player = 1
            self.player2.score_entered(score)
            self.player_to_throw()

    


if __name__ == "__main__":
    App()
    </pre>When i run the above code, it runs, I get the new game screen and can enter names. Once that is done when i enter a score get the following error,<pre><code class="codeblock error"><div class="title">Error:</div>AttributeError: type object 'App' has no attribute 'game'</code></pre>.<br />
<br />
I have tried various solutions but all have the same error. <br />
<br />
I am only looking for an quick work around for this error, as the is still quite a lot of work to do on the program, so looking to keep the structure as is.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[HELP to Alter Code in my program]]></title>
			<link>https://python-forum.io/thread-46383.html</link>
			<pubDate>Tue, 04 Aug 2026 14:26:01 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=44003">pskin132</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46383.html</guid>
			<description><![CDATA[Hi Guys, <br />
<br />
On the following set of code how would i change where it says "---------Mixed----------- 25)User:Pass:(10x10 Mixed)." TO "---------Mixed----------- 25)User:Pass:(8x10 Mixed)"<br />
<br />
I bascially want it to generate a length of 8 characters BY 10 characters and NOT 10 characters by 10 chracters.<br />
<br />
I presume quite easy but im learning basics atm. <br />
<br />
thank you heres the code<br />
...........................................................<br />
<pre class="brush: python" title="Python Code:">import os,pip
import random
from random import choice
import traceback
import subprocess,webbrowser
import sys
import time
import names
from tqdm import tqdm

yeninesil=(
"00:1A:79:",
"33:44:CF:",
"10:27:BE:",
"A0:BB:3E:",
"00:1B:79:",
"00:2A:79:",
)
os.system('cls')
c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]

time.sleep(0.5)
mouse=("""
\33[0m\33[32m

█▀▀ █▀█ █▀▄▀█ █▄▄ █▀█   █▀▀ █▀▀ █▄░█
█▄▄ █▄█ █░▀░█ █▄█ █▄█   █▄█ ██▄ █░▀█
            
      \33[0m\33[0m\33[0m\33
\33[0;1;5;m
 """)
print(mouse)

time.sleep(0.5)
print ("""

Choose Which Type of Combo You Would Like to Make.

0)Mac Combo Generating
-------Matching-------
1)Mail:Pass.
2)User:Pass Names.
3)User:Pass Names Matching.
4)FirstLast:FirstLast
5)Mail.
6)Pass.
7)User.User Matching
8)User.
9)foreign:User numbered
10)foriegn:User matching.
11)User:Birth year.
12)User:Pass:Birth year.
13)User:Pass:(2 Nums).
14)User:Pass:(4 Nums).
15)User:Pass:(123 User).
16)User:Pass:(4x4 Nums Same).
17)User:Pass:(5x5 Nums Same).
18)User:Pass:(6x6 Nums Same).
19)User:Pass:(7x7 Nums Same).
20)User:Pass:(8x8 Nums Same).
21)User:Pass:(9x9 Nums Same).
22)User:Pass:(10x10 Nums Same).
23)User:Pass:(12x12 Nums Same).
24)User:Pass:(15x15 Nums Same).
---------Mixed-----------
25)User:Pass:(10x10 Mixed).
26)User:Pass:(12x10 Mixed).
27)User:Pass:(15x10 Mixed).
28)User:Pass:(Random Nums).
--------Different---------
29)User:Pass:(4x4 Nums Diff).
30)User:Pass:(5x5 Nums Diff).
31)User:Pass:(6x6 Nums Diff).
32)User:Pass:(7x7 Nums Diff).
33)User:Pass:(8x8 Nums Diff).
34)User:Pass:(9x9 Nums Diff).
35)User:Pass:(10x10 Nums Diff).
36)User:Pass:(12x12 Nums Diff).
37)User:Pass:(15x15 Nums Diff).

99)Exit.

""")
menu = input("Enter Option ")

if menu=="0":
    print("""

    Mac Combo Generating
    """)
    nnesil=str(yeninesil)
    nnesil=(nnesil.count(',')+1)
    for xd in range(0,(nnesil)):
            print(str(xd+1)+" - "+yeninesil[xd] )
    #subprocess.run(["clear", ""])


#print(nnesil)
    i=0
    nesil=0
    dosya=input("""
    Enter Your Combo File Name...

    File name=""")
    karisik=input("""
    \33[0m\33[1;40m Creating mixed mac type !

    \33[0m\33[1;40mPress Enter""")
    karisik=karisik.upper()
    print("")
    if not karisik[:1]=="E" :
        for xd in range(0,(nnesil)):
            print(str(xd+1)+" - "+yeninesil[xd] )
        nesil=input("""
        
    Choose Mac type=""")

    adet=input("""

    Number of macs to generate=""")

    DosyaA="/data/data/com.termux/files/home/storage/downloads/iptv/combo/"+dosya+".txt"
    def kaydet(mac):
        dosya=open(DosyaA,'a+') 
        dosya.write(mac)
        dosya.close()


    while True:
        #hex_num = hex(mag)[2:].zfill(6)
        genmac = "%02x:%02x:%02x"% (random.randint(0, 256),random.randint(0, 256),random.randint(0, 256))
        genmac=genmac.replace('100','10')
        #print(karisik[:1])
        if karisik[:1]=="E" :
            for xd in range(0,nnesil):
                    genmac = "%02x:%02x:%02x"% (random.randint(0, 256),random.randint(0, 256),random.randint(0, 256))
                    genmac=genmac.replace('100','10')
                    print(yeninesil[xd]+genmac)
                    kaydet(yeninesil[xd]+genmac+"\n")
        else:
            print(yeninesil[int(nesil)-1]+genmac)
            kaydet(yeninesil[int(nesil)-1]+genmac+"\n")
        i=i+1
        if str(i) ==adet:
            break
    print("\n\nProcess Completed now Goto Scanner and Scan for Fun\n\n")



if menu=="1":
    #os.system('clear')
    gmail = input("Which Mail Type ? (Ex:@gmail.com): ")
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()

    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(0,2023)
        all1 = "%s%s%s"%(rname,num,gmail)
        alln = "%s%s%s%s"%(all1,":",rname,num)
        all2 = "%s%s%s"%(rlastname,num,gmail)
        allf = "%s%s%s%s"%(all2,":",rlastname,num) 
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="2":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()

    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(1900,2023)
        all1 = "%s%s"%(rname,num)
        alln = "%s%s%s%s"%(all1,":",rlastname,num)
        all2 = "%s%s"%(rlastname,num)
        allf = "%s%s%s%s"%(all2,":",rname,num) 
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")
    

if menu=="3":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(0,999)
        all1 = "%s"%(rname)
        alln = "%s%s%s"%(all1,":",rname)
        all2 = "%s"%(rlastname)
        allf = "%s%s%s"%(all2,":",rlastname)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="4":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()

    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        #num = random.randint(1900,2020)
        all1 = "%s%s"%(rname,rlastname)
        alln = "%s%s%s%s"%(all1,":",rname,rlastname)
        all2 = "%s%s"%(rname,rlastname)
        allf = "%s%s%s%s"%(all2,":",rname,rlastname) 
        all=(alln)
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="5":
    #os.system('clear')
    gmail = input("Which Mail Type ? (Ex:@gmail.com): ")
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(1500,2023)
        all1 = "%s%s%s"%(rname,num,gmail)
        all2 = "%s%s%s"%(rlastname,num,gmail)
        all=all1 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")
    
    
if menu=="6":
    #os.system('clear')
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(0,2023)
        alln = "%s%s"%(rname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")
    
if menu=="7":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(000,999)
        all1 = "%s"%(rname)
        alln = "%s%s%s"%(all1,":",rname)
        all2 = "%s"%(rlastname)
        allf = "%s%s%s"%(all2,":",rlastname)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="8":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(1900,2023)
        all1 = "%s%s"%(rname,num)
        all2 = "%s%s"%(rlastname,num)
        all=all1 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="9":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(000,999)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="10":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(000,999)
        all1 = "%s"%(fname)
        alln = "%s%s%s"%(all1,":",fname)
        all2 = "%s"%(flastname)
        allf = "%s%s%s"%(all2,":",flastname)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="11":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(1900,2023)
        alln = "%s%s"%(fname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="12":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(10,10)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="13":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(00,99)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="14":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(0000,9999)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")    


if menu=="15":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(123,123)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="16":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
      g1=random.randint(0,9)
      g2=random.randint(0,9)
      g3=random.randint(0,9)
      g4=random.randint(0,9)
      c1 = c[g1]
      c2 = c[g2]
      c3 = c[g3]
      c4 = c[g4]
      user = c1+c2+c3+c4
      user=user+":"+user 
      print(i," = ",user)
      f = open(filename, "a")
      f.write(user)
      f.write("\n")
      f.close()
      i += 1
   


    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()




if menu=="17":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
      g1=random.randint(0,9)
      g2=random.randint(0,9)
      g3=random.randint(0,9)
      g4=random.randint(0,9)
      g5=random.randint(0,9)
      c1 = c[g1]
      c2 = c[g2]
      c3 = c[g3]
      c4 = c[g4]
      c5 = c[g5]
      user = c1+c2+c3+c4+c5
      user=user+":"+user 
      print(i," = ",user)
      f = open(filename, "a")
      f.write(user)
      f.write("\n")
      f.close()
      i += 1
   
    x = input("\nPress Enter To Exit...")

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="18":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       user = c1+c2+c3+c4+c5+c6
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()

#    quit()




if menu=="19":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       user = c1+c2+c3+c4+c5+c6+c7
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()

#    quit()


if menu=="20":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       user = c1+c2+c3+c4+c5+c6+c7+c8
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#    quit()



if menu=="21":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#    quit()








if menu=="22":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c9 = c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#    quit()


if menu=="23":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

    # reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="24":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       g13=random.randint(0,9)
       g14=random.randint(0,9)
       g15=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()


if menu=="25":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,61)
       g2=random.randint(0,61)
       g3=random.randint(0,61)
       g4=random.randint(0,61)
       g5=random.randint(0,61)
       g6=random.randint(0,61)
       g7=random.randint(0,61)
       g8=random.randint(0,61)
       g9=random.randint(0,61)
       g10=random.randint(0,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       g1=random.randint(1,61)
       g2=random.randint(1,61)
       g3=random.randint(1,61)
       g4=random.randint(1,61)
       g5=random.randint(1,61)
       g6=random.randint(1,61)
       g7=random.randint(1,61)
       g8=random.randint(1,61)
       g9=random.randint(1,61)
       g10=random.randint(1,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="26":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       user=c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       g1=random.randint(1,9)
       g2=random.randint(1,9)
       g3=random.randint(1,9)
       g4=random.randint(1,9)
       g5=random.randint(1,9)
       g6=random.randint(1,9)
       g7=random.randint(1,9)
       g8=random.randint(1,9)
       g9=random.randint(1,9)
       g10=random.randint(1,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10= c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="27":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,61)
       g2=random.randint(0,61)
       g3=random.randint(0,61)
       g4=random.randint(0,61)
       g5=random.randint(0,61)
       g6=random.randint(0,61)
       g7=random.randint(0,61)
       g8=random.randint(0,61)
       g9=random.randint(0,61)
       g10=random.randint(0,61)
       g11=random.randint(0,61)
       g12=random.randint(0,61)
       g13=random.randint(0,61)
       g14=random.randint(0,61)
       g15=random.randint(0,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       g1=random.randint(1,61)
       g2=random.randint(1,61)
       g3=random.randint(1,61)
       g4=random.randint(1,61)
       g5=random.randint(1,61)
       g6=random.randint(1,61)
       g7=random.randint(1,61)
       g8=random.randint(1,61)
       g9=random.randint(1,61)
       g10=random.randint(1,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1



#if menu=="99":
    quit()



if menu=="28":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = random.randint(0,999)
        rlastname = random.randint(0,999)
        num = random.randint(0,999)
        all1 = "%s%s"%(rname,num)
        alln = "%s%s%s%s"%(all1,":",rname,num)
        all2 = "%s%s"%(rlastname,num)
        allf = "%s%s%s%s"%(all2,":",rlastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="29":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       user = c1+c2+c3+c4
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       pw = c1+c2+c3+c4
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()


if menu=="30":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       user = c1+c2+c3+c4+c5
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       pw = c1+c2+c3+c4+c5
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()



if menu=="31":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       user = c1+c2+c3+c4+c5+c6
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       pw = c1+c2+c3+c4+c5+c6
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()  





if menu=="32":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       user = c1+c2+c3+c4+c5+c6+c7
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       pw = c1+c2+c3+c4+c5+c6+c7
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()  


if menu=="33":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       user = c1+c2+c3+c4+c5+c6+c7+c8
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       pw = c1+c2+c3+c4+c5+c6+c7+c8
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 


if menu=="34":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 


if menu=="35":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 



if menu=="36":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 

if menu=="37":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       g13=random.randint(0,9)
       g14=random.randint(0,9)
       g15=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       g13=random.randint(0,9)
       g14=random.randint(0,9)
       g15=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()</pre>]]></description>
			<content:encoded><![CDATA[Hi Guys, <br />
<br />
On the following set of code how would i change where it says "---------Mixed----------- 25)User:Pass:(10x10 Mixed)." TO "---------Mixed----------- 25)User:Pass:(8x10 Mixed)"<br />
<br />
I bascially want it to generate a length of 8 characters BY 10 characters and NOT 10 characters by 10 chracters.<br />
<br />
I presume quite easy but im learning basics atm. <br />
<br />
thank you heres the code<br />
...........................................................<br />
<pre class="brush: python" title="Python Code:">import os,pip
import random
from random import choice
import traceback
import subprocess,webbrowser
import sys
import time
import names
from tqdm import tqdm

yeninesil=(
"00:1A:79:",
"33:44:CF:",
"10:27:BE:",
"A0:BB:3E:",
"00:1B:79:",
"00:2A:79:",
)
os.system('cls')
c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]

time.sleep(0.5)
mouse=("""
\33[0m\33[32m

█▀▀ █▀█ █▀▄▀█ █▄▄ █▀█   █▀▀ █▀▀ █▄░█
█▄▄ █▄█ █░▀░█ █▄█ █▄█   █▄█ ██▄ █░▀█
            
      \33[0m\33[0m\33[0m\33
\33[0;1;5;m
 """)
print(mouse)

time.sleep(0.5)
print ("""

Choose Which Type of Combo You Would Like to Make.

0)Mac Combo Generating
-------Matching-------
1)Mail:Pass.
2)User:Pass Names.
3)User:Pass Names Matching.
4)FirstLast:FirstLast
5)Mail.
6)Pass.
7)User.User Matching
8)User.
9)foreign:User numbered
10)foriegn:User matching.
11)User:Birth year.
12)User:Pass:Birth year.
13)User:Pass:(2 Nums).
14)User:Pass:(4 Nums).
15)User:Pass:(123 User).
16)User:Pass:(4x4 Nums Same).
17)User:Pass:(5x5 Nums Same).
18)User:Pass:(6x6 Nums Same).
19)User:Pass:(7x7 Nums Same).
20)User:Pass:(8x8 Nums Same).
21)User:Pass:(9x9 Nums Same).
22)User:Pass:(10x10 Nums Same).
23)User:Pass:(12x12 Nums Same).
24)User:Pass:(15x15 Nums Same).
---------Mixed-----------
25)User:Pass:(10x10 Mixed).
26)User:Pass:(12x10 Mixed).
27)User:Pass:(15x10 Mixed).
28)User:Pass:(Random Nums).
--------Different---------
29)User:Pass:(4x4 Nums Diff).
30)User:Pass:(5x5 Nums Diff).
31)User:Pass:(6x6 Nums Diff).
32)User:Pass:(7x7 Nums Diff).
33)User:Pass:(8x8 Nums Diff).
34)User:Pass:(9x9 Nums Diff).
35)User:Pass:(10x10 Nums Diff).
36)User:Pass:(12x12 Nums Diff).
37)User:Pass:(15x15 Nums Diff).

99)Exit.

""")
menu = input("Enter Option ")

if menu=="0":
    print("""

    Mac Combo Generating
    """)
    nnesil=str(yeninesil)
    nnesil=(nnesil.count(',')+1)
    for xd in range(0,(nnesil)):
            print(str(xd+1)+" - "+yeninesil[xd] )
    #subprocess.run(["clear", ""])


#print(nnesil)
    i=0
    nesil=0
    dosya=input("""
    Enter Your Combo File Name...

    File name=""")
    karisik=input("""
    \33[0m\33[1;40m Creating mixed mac type !

    \33[0m\33[1;40mPress Enter""")
    karisik=karisik.upper()
    print("")
    if not karisik[:1]=="E" :
        for xd in range(0,(nnesil)):
            print(str(xd+1)+" - "+yeninesil[xd] )
        nesil=input("""
        
    Choose Mac type=""")

    adet=input("""

    Number of macs to generate=""")

    DosyaA="/data/data/com.termux/files/home/storage/downloads/iptv/combo/"+dosya+".txt"
    def kaydet(mac):
        dosya=open(DosyaA,'a+') 
        dosya.write(mac)
        dosya.close()


    while True:
        #hex_num = hex(mag)[2:].zfill(6)
        genmac = "%02x:%02x:%02x"% (random.randint(0, 256),random.randint(0, 256),random.randint(0, 256))
        genmac=genmac.replace('100','10')
        #print(karisik[:1])
        if karisik[:1]=="E" :
            for xd in range(0,nnesil):
                    genmac = "%02x:%02x:%02x"% (random.randint(0, 256),random.randint(0, 256),random.randint(0, 256))
                    genmac=genmac.replace('100','10')
                    print(yeninesil[xd]+genmac)
                    kaydet(yeninesil[xd]+genmac+"\n")
        else:
            print(yeninesil[int(nesil)-1]+genmac)
            kaydet(yeninesil[int(nesil)-1]+genmac+"\n")
        i=i+1
        if str(i) ==adet:
            break
    print("\n\nProcess Completed now Goto Scanner and Scan for Fun\n\n")



if menu=="1":
    #os.system('clear')
    gmail = input("Which Mail Type ? (Ex:@gmail.com): ")
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()

    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(0,2023)
        all1 = "%s%s%s"%(rname,num,gmail)
        alln = "%s%s%s%s"%(all1,":",rname,num)
        all2 = "%s%s%s"%(rlastname,num,gmail)
        allf = "%s%s%s%s"%(all2,":",rlastname,num) 
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="2":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()

    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(1900,2023)
        all1 = "%s%s"%(rname,num)
        alln = "%s%s%s%s"%(all1,":",rlastname,num)
        all2 = "%s%s"%(rlastname,num)
        allf = "%s%s%s%s"%(all2,":",rname,num) 
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")
    

if menu=="3":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(0,999)
        all1 = "%s"%(rname)
        alln = "%s%s%s"%(all1,":",rname)
        all2 = "%s"%(rlastname)
        allf = "%s%s%s"%(all2,":",rlastname)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="4":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()

    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        #num = random.randint(1900,2020)
        all1 = "%s%s"%(rname,rlastname)
        alln = "%s%s%s%s"%(all1,":",rname,rlastname)
        all2 = "%s%s"%(rname,rlastname)
        allf = "%s%s%s%s"%(all2,":",rname,rlastname) 
        all=(alln)
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="5":
    #os.system('clear')
    gmail = input("Which Mail Type ? (Ex:@gmail.com): ")
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(1500,2023)
        all1 = "%s%s%s"%(rname,num,gmail)
        all2 = "%s%s%s"%(rlastname,num,gmail)
        all=all1 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")
    
    
if menu=="6":
    #os.system('clear')
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(0,2023)
        alln = "%s%s"%(rname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")
    
if menu=="7":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(000,999)
        all1 = "%s"%(rname)
        alln = "%s%s%s"%(all1,":",rname)
        all2 = "%s"%(rlastname)
        allf = "%s%s%s"%(all2,":",rlastname)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="8":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = names.get_first_name()
        rlastname = names.get_last_name()
        num = random.randint(1900,2023)
        all1 = "%s%s"%(rname,num)
        all2 = "%s%s"%(rlastname,num)
        all=all1 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="9":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(000,999)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="10":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(000,999)
        all1 = "%s"%(fname)
        alln = "%s%s%s"%(all1,":",fname)
        all2 = "%s"%(flastname)
        allf = "%s%s%s"%(all2,":",flastname)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="11":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(1900,2023)
        alln = "%s%s"%(fname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="12":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(10,10)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")



if menu=="13":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(00,99)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="14":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(0000,9999)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")    


if menu=="15":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        fname = names.get_first_name()
        flastname = names.get_last_name()
        num = random.randint(123,123)
        all1 = "%s%s"%(fname,num)
        alln = "%s%s%s%s"%(all1,":",fname,num)
        all2 = "%s%s"%(flastname,num)
        allf = "%s%s%s%s"%(all2,":",flastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="16":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
      g1=random.randint(0,9)
      g2=random.randint(0,9)
      g3=random.randint(0,9)
      g4=random.randint(0,9)
      c1 = c[g1]
      c2 = c[g2]
      c3 = c[g3]
      c4 = c[g4]
      user = c1+c2+c3+c4
      user=user+":"+user 
      print(i," = ",user)
      f = open(filename, "a")
      f.write(user)
      f.write("\n")
      f.close()
      i += 1
   


    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()




if menu=="17":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
      g1=random.randint(0,9)
      g2=random.randint(0,9)
      g3=random.randint(0,9)
      g4=random.randint(0,9)
      g5=random.randint(0,9)
      c1 = c[g1]
      c2 = c[g2]
      c3 = c[g3]
      c4 = c[g4]
      c5 = c[g5]
      user = c1+c2+c3+c4+c5
      user=user+":"+user 
      print(i," = ",user)
      f = open(filename, "a")
      f.write(user)
      f.write("\n")
      f.close()
      i += 1
   
    x = input("\nPress Enter To Exit...")

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="18":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       user = c1+c2+c3+c4+c5+c6
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()

#    quit()




if menu=="19":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       user = c1+c2+c3+c4+c5+c6+c7
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()

#    quit()


if menu=="20":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       user = c1+c2+c3+c4+c5+c6+c7+c8
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#    quit()



if menu=="21":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#    quit()








if menu=="22":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c9 = c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#    quit()


if menu=="23":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

    # reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="24":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       g13=random.randint(0,9)
       g14=random.randint(0,9)
       g15=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()


if menu=="25":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,61)
       g2=random.randint(0,61)
       g3=random.randint(0,61)
       g4=random.randint(0,61)
       g5=random.randint(0,61)
       g6=random.randint(0,61)
       g7=random.randint(0,61)
       g8=random.randint(0,61)
       g9=random.randint(0,61)
       g10=random.randint(0,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       g1=random.randint(1,61)
       g2=random.randint(1,61)
       g3=random.randint(1,61)
       g4=random.randint(1,61)
       g5=random.randint(1,61)
       g6=random.randint(1,61)
       g7=random.randint(1,61)
       g8=random.randint(1,61)
       g9=random.randint(1,61)
       g10=random.randint(1,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="26":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       user=c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       g1=random.randint(1,9)
       g2=random.randint(1,9)
       g3=random.randint(1,9)
       g4=random.randint(1,9)
       g5=random.randint(1,9)
       g6=random.randint(1,9)
       g7=random.randint(1,9)
       g8=random.randint(1,9)
       g9=random.randint(1,9)
       g10=random.randint(1,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10= c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+user 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1
   

    print (" ")
    print (n," COMBOS SAVED TO : ",filename,)
    print (" ")
    print ("SCRIPT WRITTEN BY &lt;= 🅼🆁.🅽🅾🅾🅱 =&gt;")
    print (" ")
    print ("PRESS ENTER TO EXIT")
    input()



#if menu=="99":
    quit()



if menu=="27":
    c =     ["1","2","3","4","5","6","7","8","9","0","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,61)
       g2=random.randint(0,61)
       g3=random.randint(0,61)
       g4=random.randint(0,61)
       g5=random.randint(0,61)
       g6=random.randint(0,61)
       g7=random.randint(0,61)
       g8=random.randint(0,61)
       g9=random.randint(0,61)
       g10=random.randint(0,61)
       g11=random.randint(0,61)
       g12=random.randint(0,61)
       g13=random.randint(0,61)
       g14=random.randint(0,61)
       g15=random.randint(0,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       g1=random.randint(1,61)
       g2=random.randint(1,61)
       g3=random.randint(1,61)
       g4=random.randint(1,61)
       g5=random.randint(1,61)
       g6=random.randint(1,61)
       g7=random.randint(1,61)
       g8=random.randint(1,61)
       g9=random.randint(1,61)
       g10=random.randint(1,61)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1



#if menu=="99":
    quit()



if menu=="28":
    hwm = int(input("Enter number of combos to generate : "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")


    f = open(filename, "w")
    f.write("")
    f.close()
    
    for i in range (0,hwm):
        i = 1+1
        rname = random.randint(0,999)
        rlastname = random.randint(0,999)
        num = random.randint(0,999)
        all1 = "%s%s"%(rname,num)
        alln = "%s%s%s%s"%(all1,":",rname,num)
        all2 = "%s%s"%(rlastname,num)
        allf = "%s%s%s%s"%(all2,":",rlastname,num)
        all=alln 
        print(i," = ",all)
        f = open(filename, "a")
        f.write(all)
        f.write("\n")
        f.close()
        i += 1
    x = input("\nPress Enter To Exit...")


if menu=="29":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       user = c1+c2+c3+c4
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       pw = c1+c2+c3+c4
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()


if menu=="30":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       user = c1+c2+c3+c4+c5
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       pw = c1+c2+c3+c4+c5
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()



if menu=="31":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       user = c1+c2+c3+c4+c5+c6
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       pw = c1+c2+c3+c4+c5+c6
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()  





if menu=="32":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       user = c1+c2+c3+c4+c5+c6+c7
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       pw = c1+c2+c3+c4+c5+c6+c7
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()  


if menu=="33":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       user = c1+c2+c3+c4+c5+c6+c7+c8
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       pw = c1+c2+c3+c4+c5+c6+c7+c8
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 


if menu=="34":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 


if menu=="35":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 



if menu=="36":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit() 

if menu=="37":
    c =     ["1","2","3","4","5","6","7","8","9","0"," "]


    print(" ")
    print(" ")

# To take input from the user,
    n = int(input("Enter number of combos to generate :   "))
    print (" ")
    print ("Enter the name of the file you want to save  ")
    print ("No need to enter the .txt ")
    filename = input("example combos     :  ")
    filename = filename + ".txt"
    print (" ")

# reset filename

    f = open(filename, "w")
    f.write("")
    f.close()

    i = 1

    while i &lt;= n:
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       g13=random.randint(0,9)
       g14=random.randint(0,9)
       g15=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       user = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       g1=random.randint(0,9)
       g2=random.randint(0,9)
       g3=random.randint(0,9)
       g4=random.randint(0,9)
       g5=random.randint(0,9)
       g6=random.randint(0,9)
       g7=random.randint(0,9)
       g8=random.randint(0,9)
       g9=random.randint(0,9)
       g10=random.randint(0,9)
       g11=random.randint(0,9)
       g12=random.randint(0,9)
       g13=random.randint(0,9)
       g14=random.randint(0,9)
       g15=random.randint(0,9)
       c1 = c[g1]
       c2 = c[g2]
       c3 = c[g3]
       c4 = c[g4]
       c5 = c[g5]
       c6 = c[g6]
       c7 = c[g7]
       c8 = c[g8]
       c9 = c[g9]
       c10 = c[g10]
       c11 = c[g11]
       c12 = c[g12]
       c13 = c[g13]
       c14 = c[g14]
       c15 = c[g15]
       pw = c1+c2+c3+c4+c5+c6+c7+c8+c9+c10+c11+c12+c13+c14+c15
       user=user+":"+pw 
       print(i," = ",user)
       f = open(filename, "a")
       f.write(user)
       f.write("\n")
       f.close()
       i += 1

    x = input("\nPress Enter To Exit...")

    quit()</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[SOLVED] [advice] Crop pictures]]></title>
			<link>https://python-forum.io/thread-46382.html</link>
			<pubDate>Tue, 04 Aug 2026 07:36:29 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=11957">Winfried</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46382.html</guid>
			<description><![CDATA[Hello,<br />
<br />
Before I look into it, how would you crop top+bottom on all pictures, and then crop left+right depending on the picture's width? What module should I use for that?<br />
<br />
Pseudo-code:<br />
<pre class="brush: python" title="Python Code:">For *.png
	#crop top+bottom
	x1,y1,x2,y2 = 0,?,0,?
	crop x1,y1,x2,y2

For each .new.png:
	If width = 1200
		x1,y1,x2,y2 = 
	elif width = 1280
		x1,y1,x2,y2 = 
	crop x1,y1,x2,y2</pre>	<br />
Cheers,<br />
<br />
<img src="https://i.ibb.co/tMnW1KHd/Python-crop-pictures.png" loading="lazy"  alt="[Image: Python-crop-pictures.png]" class="mycode_img" /><br />
<br />
--<br />
Edit: For others' benefit<br />
<br />
<pre class="brush: python" title="Python Code:">from PIL import Image
import glob, os

SMALL = 1205
BIG = 1280
Y1 = 186

for file in list(glob.glob('*.png')):
	BASENAME, EXTENSION = os.path.splitext(file)
	OUTPUT = f"{BASENAME}.cropped{EXTENSION}"
	print(file)
	
	img = Image.open(file)
	width, height = img.size
	height = Y1+793
	img = img.crop((0, Y1, width, height))
	
	width, height = img.size
	if width == SMALL:
		x1 = 120
		x2 = x1+930
	elif width == BIG:
		x1 = 196
		x2 = x1+923
	y1, y2  = 0, height
	img = img.crop((x1,y1,x2,y2))
	img.save(OUTPUT, 'PNG')</pre>]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
Before I look into it, how would you crop top+bottom on all pictures, and then crop left+right depending on the picture's width? What module should I use for that?<br />
<br />
Pseudo-code:<br />
<pre class="brush: python" title="Python Code:">For *.png
	#crop top+bottom
	x1,y1,x2,y2 = 0,?,0,?
	crop x1,y1,x2,y2

For each .new.png:
	If width = 1200
		x1,y1,x2,y2 = 
	elif width = 1280
		x1,y1,x2,y2 = 
	crop x1,y1,x2,y2</pre>	<br />
Cheers,<br />
<br />
<img src="https://i.ibb.co/tMnW1KHd/Python-crop-pictures.png" loading="lazy"  alt="[Image: Python-crop-pictures.png]" class="mycode_img" /><br />
<br />
--<br />
Edit: For others' benefit<br />
<br />
<pre class="brush: python" title="Python Code:">from PIL import Image
import glob, os

SMALL = 1205
BIG = 1280
Y1 = 186

for file in list(glob.glob('*.png')):
	BASENAME, EXTENSION = os.path.splitext(file)
	OUTPUT = f"{BASENAME}.cropped{EXTENSION}"
	print(file)
	
	img = Image.open(file)
	width, height = img.size
	height = Y1+793
	img = img.crop((0, Y1, width, height))
	
	width, height = img.size
	if width == SMALL:
		x1 = 120
		x2 = x1+930
	elif width == BIG:
		x1 = 196
		x2 = x1+923
	y1, y2  = 0, height
	img = img.crop((x1,y1,x2,y2))
	img.save(OUTPUT, 'PNG')</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Toi uu hoa xu ly du lieu lon: Generator so voi Multiprocessing?]]></title>
			<link>https://python-forum.io/thread-46380.html</link>
			<pubDate>Wed, 29 Jul 2026 07:12:58 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=43993">thoitiethomnayorg</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46380.html</guid>
			<description><![CDATA[Minh dang doi mat voi mot bai toan xu ly du lieu (data processing) co quy mo len den hang chuc GB duoi dang file JSON. Truoc day minh thuong dung pandas de doc toan bo vao memory nhung hien tai da vuot qua dung luong RAM cua may chu (Server-side).<br />
<br />
Minh dang phan van giua hai huong tiep can va muon tham khao y kien cua anh em:<br />
<br />
Generator: Minh da thu dung yield de doc tung line (streaming). Cach nay rat tiet kiem RAM nhung lai lam cham toc do xu ly do phai doc file nhieu lan. Lieu co cach nao de duy tri tinh "lazy evaluation" ma van giu duoc toc do cao khong?<br />
Multiprocessing: Minh dang nghi den viec chia nho file ra thanh nhieu chunk va xu ly song song. Tuy nhien, viec quan ly bo nho (memory overhead) giua cac process dang la van de đau dau. Anh em co thu vien nao ho tro queue-based processing thuc su hieu qua khong?<br />
Liệu co ai da tung xu ly bai toan tuong tu voi dask hoac polars chua? Minh muon biet lieu viec chuyen doi sang framework khac co phai la buoc di tat yeu hay minh co the tinh chinh (tweak) code goc de dat hieu nang mong muon.<br />
<br />
Rat mong nhan duoc su gop y ve kien truc xu ly (architecture) va kinh nghiem tu cac ban. Cam on moi nguoi da danh thoi gian xem qua!<br />
Moi ban ghe tham trang web cua chung toi de cap nhat tinh hinh thoi tiet nhanh chong, chinh xac va bien moi ngay tro nen thuan loi hon, bat chap moi bien dong cua thoi tiet. Su chu dong cua ban chinh la chia khoa cho mot cuoc song tien nghi va an toan. <a href="https://thoitiethomnay.org/" target="_blank" rel="noopener" class="mycode_url">https://thoitiethomnay.org/</a>]]></description>
			<content:encoded><![CDATA[Minh dang doi mat voi mot bai toan xu ly du lieu (data processing) co quy mo len den hang chuc GB duoi dang file JSON. Truoc day minh thuong dung pandas de doc toan bo vao memory nhung hien tai da vuot qua dung luong RAM cua may chu (Server-side).<br />
<br />
Minh dang phan van giua hai huong tiep can va muon tham khao y kien cua anh em:<br />
<br />
Generator: Minh da thu dung yield de doc tung line (streaming). Cach nay rat tiet kiem RAM nhung lai lam cham toc do xu ly do phai doc file nhieu lan. Lieu co cach nao de duy tri tinh "lazy evaluation" ma van giu duoc toc do cao khong?<br />
Multiprocessing: Minh dang nghi den viec chia nho file ra thanh nhieu chunk va xu ly song song. Tuy nhien, viec quan ly bo nho (memory overhead) giua cac process dang la van de đau dau. Anh em co thu vien nao ho tro queue-based processing thuc su hieu qua khong?<br />
Liệu co ai da tung xu ly bai toan tuong tu voi dask hoac polars chua? Minh muon biet lieu viec chuyen doi sang framework khac co phai la buoc di tat yeu hay minh co the tinh chinh (tweak) code goc de dat hieu nang mong muon.<br />
<br />
Rat mong nhan duoc su gop y ve kien truc xu ly (architecture) va kinh nghiem tu cac ban. Cam on moi nguoi da danh thoi gian xem qua!<br />
Moi ban ghe tham trang web cua chung toi de cap nhat tinh hinh thoi tiet nhanh chong, chinh xac va bien moi ngay tro nen thuan loi hon, bat chap moi bien dong cua thoi tiet. Su chu dong cua ban chinh la chia khoa cho mot cuoc song tien nghi va an toan. <a href="https://thoitiethomnay.org/" target="_blank" rel="noopener" class="mycode_url">https://thoitiethomnay.org/</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Solved] Module(package) mode, __init__.py vars,  import... vs from...import.]]></title>
			<link>https://python-forum.io/thread-46379.html</link>
			<pubDate>Tue, 28 Jul 2026 07:51:50 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=5951">MvGulik</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46379.html</guid>
			<description><![CDATA[Never used python module(package) mode, but decided to explored it.<br />
<br />
So to import module stuff one can use "<span style="font-weight: bold;" class="mycode_b">import &lt;ModuleName/DirName&gt;</span>" and/or "<span style="font-weight: bold;" class="mycode_b">from &lt;ModuleName/DirName&gt;.&lt;PyFileName&gt; import &lt;Function, Class, ...&gt;, ...</span>".<br />
<br />
My question.<br />
In the "<span style="font-weight: bold;" class="mycode_b">__init__.py</span>" file I put some "<span style="font-weight: bold;" class="mycode_b">__version__</span>" test var/setting.<br />
But I can' find a way to specially import it without using "<span style="font-weight: bold;" class="mycode_b">import &lt;module-name&gt;</span>". (<span style="font-style: italic;" class="mycode_i">which I assume also imports everything else in the module</span>)<br />
So far I have not found a way to get this version setting to be imported with "<span style="font-weight: bold;" class="mycode_b">from ... import ...</span>"<br />
Is using "<span style="font-weight: bold;" class="mycode_b">import &lt;module-name&gt;</span>" the only way to get settings in the "<span style="font-weight: bold;" class="mycode_b">__init__.py</span>" to become available ?<br />
<br />
(<span style="font-style: italic;" class="mycode_i">Figure I probably are not using "<span style="font-weight: bold;" class="mycode_b">__init__.py</span>"  as intended. Still got a lot to read, learn &amp; experiment when it comes to working with modules/packages</span>)<br />
<br />
(<span style="font-style: italic;" class="mycode_i">PS: Is there a non-block(/inline) mode code-tag on this forum ?</span>)]]></description>
			<content:encoded><![CDATA[Never used python module(package) mode, but decided to explored it.<br />
<br />
So to import module stuff one can use "<span style="font-weight: bold;" class="mycode_b">import &lt;ModuleName/DirName&gt;</span>" and/or "<span style="font-weight: bold;" class="mycode_b">from &lt;ModuleName/DirName&gt;.&lt;PyFileName&gt; import &lt;Function, Class, ...&gt;, ...</span>".<br />
<br />
My question.<br />
In the "<span style="font-weight: bold;" class="mycode_b">__init__.py</span>" file I put some "<span style="font-weight: bold;" class="mycode_b">__version__</span>" test var/setting.<br />
But I can' find a way to specially import it without using "<span style="font-weight: bold;" class="mycode_b">import &lt;module-name&gt;</span>". (<span style="font-style: italic;" class="mycode_i">which I assume also imports everything else in the module</span>)<br />
So far I have not found a way to get this version setting to be imported with "<span style="font-weight: bold;" class="mycode_b">from ... import ...</span>"<br />
Is using "<span style="font-weight: bold;" class="mycode_b">import &lt;module-name&gt;</span>" the only way to get settings in the "<span style="font-weight: bold;" class="mycode_b">__init__.py</span>" to become available ?<br />
<br />
(<span style="font-style: italic;" class="mycode_i">Figure I probably are not using "<span style="font-weight: bold;" class="mycode_b">__init__.py</span>"  as intended. Still got a lot to read, learn &amp; experiment when it comes to working with modules/packages</span>)<br />
<br />
(<span style="font-style: italic;" class="mycode_i">PS: Is there a non-block(/inline) mode code-tag on this forum ?</span>)]]></content:encoded>
		</item>
	</channel>
</rss>