<?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>Sat, 08 Aug 2026 14:21:40 +0000</pubDate>
		<generator>MyBB</generator>
		<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>
		<item>
			<title><![CDATA[How big is my file?]]></title>
			<link>https://python-forum.io/thread-46376.html</link>
			<pubDate>Mon, 27 Jul 2026 00:50:05 +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-46376.html</guid>
			<description><![CDATA[os.stat() and sys.getsizeof() get 2 different sizes for file. Which is correct? Why are they not the same?<br />
<br />
<pre class="brush: python" title="Python Code:">import os, sys

file = '/home/peterr/temp/textfile.txt'
with open(file) as infile:
    data = list(infile) # data = ['This is line 1.\n', 'This is line 2.\n', 'This is line 3.']

meta_data = os.stat(file) # size of file:  st_size=47
# os.stat_result(st_mode=33204, st_ino=2363275, st_dev=66311, st_nlink=1, st_uid=1000, st_gid=1000, st_size=47, st_atime=1785031620, st_mtime=1785031545, st_ctime=1785031545)

# these 2 get different results
file_size = sys.getsizeof(file) # 71 (bytes, I presume)
file_size_bytes = os.path.getsize(file) # 47

with open(file) as infile:
    string = infile.read()

len(string) # 47</pre>]]></description>
			<content:encoded><![CDATA[os.stat() and sys.getsizeof() get 2 different sizes for file. Which is correct? Why are they not the same?<br />
<br />
<pre class="brush: python" title="Python Code:">import os, sys

file = '/home/peterr/temp/textfile.txt'
with open(file) as infile:
    data = list(infile) # data = ['This is line 1.\n', 'This is line 2.\n', 'This is line 3.']

meta_data = os.stat(file) # size of file:  st_size=47
# os.stat_result(st_mode=33204, st_ino=2363275, st_dev=66311, st_nlink=1, st_uid=1000, st_gid=1000, st_size=47, st_atime=1785031620, st_mtime=1785031545, st_ctime=1785031545)

# these 2 get different results
file_size = sys.getsizeof(file) # 71 (bytes, I presume)
file_size_bytes = os.path.getsize(file) # 47

with open(file) as infile:
    string = infile.read()

len(string) # 47</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Anyone tell me what text book to buy for PCEP?]]></title>
			<link>https://python-forum.io/thread-46375.html</link>
			<pubDate>Thu, 23 Jul 2026 05:41:44 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=43986">goldenspaniel</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46375.html</guid>
			<description><![CDATA[Anyone tell me what text book to buy for PCEP? As this is my first post, I hope I am not in violation of any rules. If I am, can moderator move me or advise. There are some text books on Amazon- which one is good? Is the online material of python institute good enough for the exam?]]></description>
			<content:encoded><![CDATA[Anyone tell me what text book to buy for PCEP? As this is my first post, I hope I am not in violation of any rules. If I am, can moderator move me or advise. There are some text books on Amazon- which one is good? Is the online material of python institute good enough for the exam?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Read the contents of a URL's directory, without BeautifulSoup]]></title>
			<link>https://python-forum.io/thread-46374.html</link>
			<pubDate>Thu, 23 Jul 2026 00:19:57 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=50">Larz60+</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46374.html</guid>
			<description><![CDATA[Here's a simple class to read the contents of a URL's directory, without using BeautifulSoup, with usage example:<br />
Note: filters if used is a list of endings, such as .html, /, etc.<br />
<br />
<pre class="brush: python" title="Python Code:">import urllib.request
from html.parser import HTMLParser

class LinkParser(HTMLParser):
    def __init__(self):
        super().__init__()
        self.files = []

    def handle_starttag(self, tag, attrs):
        if tag == 'a':
            # Extract the href attribute
            href = dict(attrs).get('href')
            if href and not href.startswith(('?', '/', '#')):
                self.files.append(href)

class Get_URL_dir:
    def get_files_from_url(self, url, filters=None):
        req = urllib.request.Request(url)
        with urllib.request.urlopen(req) as response:
            html = response.read().decode('utf-8')

        parser = LinkParser()
        parser.feed(html)
        if filters:
            filtered_files = []
            for file in parser.files:
                for filter in filters:
                    if file.endswith(filter):
                        filtered_files.append(file)
            return filtered_files
        else:
            return parser.files


# test routine
if __name__ == '__main__':
    url = "https://www2.census.gov/geo/tiger/TIGER2025/COUSUB/"
    gud = Get_URL_dir()
    filelist = gud.get_files_from_url(url, filters=['.zip'])
    for file in filelist:
        print(file)</pre>Results of test:<br />
<pre><code class="codeblock output"><div class="title">Output:</div>tl_2025_01_cousub.zip
tl_2025_02_cousub.zip
tl_2025_04_cousub.zip
tl_2025_05_cousub.zip
tl_2025_06_cousub.zip
...</code></pre>]]></description>
			<content:encoded><![CDATA[Here's a simple class to read the contents of a URL's directory, without using BeautifulSoup, with usage example:<br />
Note: filters if used is a list of endings, such as .html, /, etc.<br />
<br />
<pre class="brush: python" title="Python Code:">import urllib.request
from html.parser import HTMLParser

class LinkParser(HTMLParser):
    def __init__(self):
        super().__init__()
        self.files = []

    def handle_starttag(self, tag, attrs):
        if tag == 'a':
            # Extract the href attribute
            href = dict(attrs).get('href')
            if href and not href.startswith(('?', '/', '#')):
                self.files.append(href)

class Get_URL_dir:
    def get_files_from_url(self, url, filters=None):
        req = urllib.request.Request(url)
        with urllib.request.urlopen(req) as response:
            html = response.read().decode('utf-8')

        parser = LinkParser()
        parser.feed(html)
        if filters:
            filtered_files = []
            for file in parser.files:
                for filter in filters:
                    if file.endswith(filter):
                        filtered_files.append(file)
            return filtered_files
        else:
            return parser.files


# test routine
if __name__ == '__main__':
    url = "https://www2.census.gov/geo/tiger/TIGER2025/COUSUB/"
    gud = Get_URL_dir()
    filelist = gud.get_files_from_url(url, filters=['.zip'])
    for file in filelist:
        print(file)</pre>Results of test:<br />
<pre><code class="codeblock output"><div class="title">Output:</div>tl_2025_01_cousub.zip
tl_2025_02_cousub.zip
tl_2025_04_cousub.zip
tl_2025_05_cousub.zip
tl_2025_06_cousub.zip
...</code></pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Tkinter Radio Button Class]]></title>
			<link>https://python-forum.io/thread-46373.html</link>
			<pubDate>Tue, 21 Jul 2026 16:59:07 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=43015">Tuurbo46</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46373.html</guid>
			<description><![CDATA[Hello,<br />
<br />
So I have a 4 tab tkinter GUI stripped back to basics and I am trying to add multiple radio buttons on each tab.  Instead of repeating the Radio Button code on each tab I thought I would create a Radio Button class to make things easier.  However, I am struggling with the below 'self.tab2' error.  I have done a few basic tests of creating a class and printing 'test' to terminal and this works.  Then adding the basic Radio Button code into 'def _build_tab_2(self):' and this works.  However when I try to call the class with the Radio Button code in it gets upset with the 'self.tab2' in the class.  How would I update the code to accept accept 'self.tab2'?<br />
<br />
Thanks,<br />
Tuurbo46<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Error Message</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">R1 = Radiobutton(self.tab2, text="Option 1", variable=self.var, value=1)<br />
                     ^^^^^^^^^<br />
AttributeError: 'Radio_Button_Cluster' object has no attribute 'tab2'</span><br />
<br />
<pre class="brush: python" title="Python Code:">import numpy as np
from tkinter import font
from tkinter import *
import tkinter as tk
from tkinter import ttk

"""
class Radio_Button_Cluster:
    def __init__(self, title):
        self.title = title

    def update_buttons(self):
        print(self.title)
"""

class Radio_Button_Cluster:
    def __init__(self, parent, title):
        self.frame = ttk.LabelFrame(parent, text=title, padding=5)
        #self.title = title

    def update_buttons(self):
        #print(self.title)
        self.var = IntVar()
        R1 = Radiobutton(self.tab2, text="Option 1", variable=self.var, value=1)
        R1.pack( anchor = W )
        R2 = Radiobutton(self.tab2, text="Option 2", variable=self.var, value=2)
        R2.pack( anchor = W )
        R3 = Radiobutton(self.tab2, text="Option 3", variable=self.var, value=3)
        R3.pack( anchor = W)
        label = Label(self.tab2)
        label.pack()

       
class App(tk.Tk):
    #---- Class Variables ----

    def __init__(self):
        super().__init__()
        self.geometry("1380x950")
        self.s = ttk.Style()
        self.s.theme_use('alt')
 
        notebook = ttk.Notebook(self)
        notebook.pack(fill="both", expand=True)
        self.tab1 = ttk.Frame(notebook)
        self.tab2 = ttk.Frame(notebook)
        self.tab3 = ttk.Frame(notebook)
        self.tab4 = ttk.Frame(notebook)
        notebook.add(self.tab1, text="TAB 1")
        notebook.add(self.tab2, text="TAB 2")
        notebook.add(self.tab3, text="TAB 3")
        notebook.add(self.tab4, text="TAB 4")
        self._build_tab_1()
        self._build_tab_2()
        self._build_tab_3()
        self._build_tab_4()
               

    def _build_tab_1(self):
        print('')
 
    def _build_tab_2(self):
        #self.RadioButtonCluster_1 = Radio_Button_Cluster('Test')
        #self.RadioButtonCluster_1.update_buttons() 

        """
        self.var = IntVar()
        R1 = Radiobutton(self.tab2, text="Option 1", variable=self.var, value=1)
        R1.pack( anchor = W )
        R2 = Radiobutton(self.tab2, text="Option 2", variable=self.var, value=2)
        R2.pack( anchor = W )
        R3 = Radiobutton(self.tab2, text="Option 3", variable=self.var, value=3)
        R3.pack( anchor = W)
        label = Label(self.tab2)
        label.pack()
        """

        self.tab2.rowconfigure(0, weight=1)
        self.tab2.rowconfigure(1, weight=1)
        self.tab2.columnconfigure(0, weight=1)
        self.tab2.columnconfigure(1, weight=1)
        self.RadioButtonCluster_1 = Radio_Button_Cluster(self.tab2, 'Test Buttons')
        self.RadioButtonCluster_1.update_buttons() 
        self.RadioButtonCluster_1.pack_grid(0, 0)

    def _build_tab_3(self):
        print('')
 
    def _build_tab_4(self):
        print('')
 
if __name__ == "__main__":
    app = App()
    app.mainloop()</pre>]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
So I have a 4 tab tkinter GUI stripped back to basics and I am trying to add multiple radio buttons on each tab.  Instead of repeating the Radio Button code on each tab I thought I would create a Radio Button class to make things easier.  However, I am struggling with the below 'self.tab2' error.  I have done a few basic tests of creating a class and printing 'test' to terminal and this works.  Then adding the basic Radio Button code into 'def _build_tab_2(self):' and this works.  However when I try to call the class with the Radio Button code in it gets upset with the 'self.tab2' in the class.  How would I update the code to accept accept 'self.tab2'?<br />
<br />
Thanks,<br />
Tuurbo46<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Error Message</span><br />
<br />
<span style="font-style: italic;" class="mycode_i">R1 = Radiobutton(self.tab2, text="Option 1", variable=self.var, value=1)<br />
                     ^^^^^^^^^<br />
AttributeError: 'Radio_Button_Cluster' object has no attribute 'tab2'</span><br />
<br />
<pre class="brush: python" title="Python Code:">import numpy as np
from tkinter import font
from tkinter import *
import tkinter as tk
from tkinter import ttk

"""
class Radio_Button_Cluster:
    def __init__(self, title):
        self.title = title

    def update_buttons(self):
        print(self.title)
"""

class Radio_Button_Cluster:
    def __init__(self, parent, title):
        self.frame = ttk.LabelFrame(parent, text=title, padding=5)
        #self.title = title

    def update_buttons(self):
        #print(self.title)
        self.var = IntVar()
        R1 = Radiobutton(self.tab2, text="Option 1", variable=self.var, value=1)
        R1.pack( anchor = W )
        R2 = Radiobutton(self.tab2, text="Option 2", variable=self.var, value=2)
        R2.pack( anchor = W )
        R3 = Radiobutton(self.tab2, text="Option 3", variable=self.var, value=3)
        R3.pack( anchor = W)
        label = Label(self.tab2)
        label.pack()

       
class App(tk.Tk):
    #---- Class Variables ----

    def __init__(self):
        super().__init__()
        self.geometry("1380x950")
        self.s = ttk.Style()
        self.s.theme_use('alt')
 
        notebook = ttk.Notebook(self)
        notebook.pack(fill="both", expand=True)
        self.tab1 = ttk.Frame(notebook)
        self.tab2 = ttk.Frame(notebook)
        self.tab3 = ttk.Frame(notebook)
        self.tab4 = ttk.Frame(notebook)
        notebook.add(self.tab1, text="TAB 1")
        notebook.add(self.tab2, text="TAB 2")
        notebook.add(self.tab3, text="TAB 3")
        notebook.add(self.tab4, text="TAB 4")
        self._build_tab_1()
        self._build_tab_2()
        self._build_tab_3()
        self._build_tab_4()
               

    def _build_tab_1(self):
        print('')
 
    def _build_tab_2(self):
        #self.RadioButtonCluster_1 = Radio_Button_Cluster('Test')
        #self.RadioButtonCluster_1.update_buttons() 

        """
        self.var = IntVar()
        R1 = Radiobutton(self.tab2, text="Option 1", variable=self.var, value=1)
        R1.pack( anchor = W )
        R2 = Radiobutton(self.tab2, text="Option 2", variable=self.var, value=2)
        R2.pack( anchor = W )
        R3 = Radiobutton(self.tab2, text="Option 3", variable=self.var, value=3)
        R3.pack( anchor = W)
        label = Label(self.tab2)
        label.pack()
        """

        self.tab2.rowconfigure(0, weight=1)
        self.tab2.rowconfigure(1, weight=1)
        self.tab2.columnconfigure(0, weight=1)
        self.tab2.columnconfigure(1, weight=1)
        self.RadioButtonCluster_1 = Radio_Button_Cluster(self.tab2, 'Test Buttons')
        self.RadioButtonCluster_1.update_buttons() 
        self.RadioButtonCluster_1.pack_grid(0, 0)

    def _build_tab_3(self):
        print('')
 
    def _build_tab_4(self):
        print('')
 
if __name__ == "__main__":
    app = App()
    app.mainloop()</pre>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Using a netbook with AntiX and python 24/7/365]]></title>
			<link>https://python-forum.io/thread-46372.html</link>
			<pubDate>Mon, 20 Jul 2026 22:34:35 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=43983">Soanzo</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46372.html</guid>
			<description><![CDATA[It was a great pleasure to install the AntiX system on an old, underpowered Acer 1410 netbook (Celeron processor, 2 GB of RAM). By running Claude on this machine, I managed to create a Python-based system that fetches news tailored to my interests and sends it to my Telegram account—all automatically and in real time. AntiX transformed a piece of e-waste into a 24/7/365 news server.<br />
I’m a beginner, and I’m looking for ideas or partnerships to put what was once e-waste to work full-time on a meaningful activity. I’m from Brazil and have become a fan of this OS. Thanks.]]></description>
			<content:encoded><![CDATA[It was a great pleasure to install the AntiX system on an old, underpowered Acer 1410 netbook (Celeron processor, 2 GB of RAM). By running Claude on this machine, I managed to create a Python-based system that fetches news tailored to my interests and sends it to my Telegram account—all automatically and in real time. AntiX transformed a piece of e-waste into a 24/7/365 news server.<br />
I’m a beginner, and I’m looking for ideas or partnerships to put what was once e-waste to work full-time on a meaningful activity. I’m from Brazil and have become a fan of this OS. Thanks.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[PIng using PyNetPing has started failing for some IP addresses]]></title>
			<link>https://python-forum.io/thread-46371.html</link>
			<pubDate>Fri, 17 Jul 2026 11:42:03 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=34032">RB76SFJPsJJDu3bMnwYM</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46371.html</guid>
			<description><![CDATA[I wrote a short Python script running on a Raspberry Pi 4 to ping 5 servers round-robin to monitor connectivity and latency because I was having issues with my cable provider. It worked fine for a while, but now 3 of the 5 servers started timing out for the script, but I can still ping them interactively from the same Pi using the same login. Below is the script, the first couple rounds of the output from the file, and the results from them interactive ping of one of the servers. Has anyone seen this behavior before, or have any suggestions I can try?<br />
<br />
<br />
<pre class="brush: python" title="Python Code:">import time
import csv
from PyNetPing import ping
from datetime import datetime
import platform

ips = ('1.1.1.1', '1.0.0.1', '8.8.8.8', '8.8.4.4', '9.9.9.9')
SLEEP_SECONDS = 60

def main():
	os_name = platform.system()
	log_path = '.'

	while True:
		file_name = f"/opt/spectrum/spectrum_{datetime.now().strftime("%Y%m%d")}.csv"
		for ip in ips:
			result = ping(ip)

			data = {
			"host": result.host,
			"sent": result.sent,
			"received": result.received,
			"min_ms": result.min_ms,
			"max_ms": result.max_ms,
			"avg_ms": result.avg_ms,
			"timestamp": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),
			"error": result.error}

			with open(file_name, "a") as f:
				writer = csv.writer(f)
				writer.writerow(data.values())

			time.sleep(SLEEP_SECONDS)


main()</pre>1.1.1.1,4,4,19.834745000025578,26.5639619999547,22.541039249972528,2026-07-17 07:03:37,<br />
1.0.0.1,4,4,19.88212300000214,22.469030999900497,21.256555499974183,2026-07-17 07:04:37,<br />
8.8.8.8,4,0,0.0,0.0,0.0,2026-07-17 07:05:45,timeout/unreachable<br />
8.8.4.4,4,0,0.0,0.0,0.0,2026-07-17 07:06:54,timeout/unreachable<br />
9.9.9.9,4,0,0.0,0.0,0.0,2026-07-17 07:08:02,timeout/unreachable<br />
<br />
bs@pi4:~ &#36; ping 8.8.8.8<br />
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.<br />
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=16.7 ms<br />
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=16.9 ms]]></description>
			<content:encoded><![CDATA[I wrote a short Python script running on a Raspberry Pi 4 to ping 5 servers round-robin to monitor connectivity and latency because I was having issues with my cable provider. It worked fine for a while, but now 3 of the 5 servers started timing out for the script, but I can still ping them interactively from the same Pi using the same login. Below is the script, the first couple rounds of the output from the file, and the results from them interactive ping of one of the servers. Has anyone seen this behavior before, or have any suggestions I can try?<br />
<br />
<br />
<pre class="brush: python" title="Python Code:">import time
import csv
from PyNetPing import ping
from datetime import datetime
import platform

ips = ('1.1.1.1', '1.0.0.1', '8.8.8.8', '8.8.4.4', '9.9.9.9')
SLEEP_SECONDS = 60

def main():
	os_name = platform.system()
	log_path = '.'

	while True:
		file_name = f"/opt/spectrum/spectrum_{datetime.now().strftime("%Y%m%d")}.csv"
		for ip in ips:
			result = ping(ip)

			data = {
			"host": result.host,
			"sent": result.sent,
			"received": result.received,
			"min_ms": result.min_ms,
			"max_ms": result.max_ms,
			"avg_ms": result.avg_ms,
			"timestamp": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),
			"error": result.error}

			with open(file_name, "a") as f:
				writer = csv.writer(f)
				writer.writerow(data.values())

			time.sleep(SLEEP_SECONDS)


main()</pre>1.1.1.1,4,4,19.834745000025578,26.5639619999547,22.541039249972528,2026-07-17 07:03:37,<br />
1.0.0.1,4,4,19.88212300000214,22.469030999900497,21.256555499974183,2026-07-17 07:04:37,<br />
8.8.8.8,4,0,0.0,0.0,0.0,2026-07-17 07:05:45,timeout/unreachable<br />
8.8.4.4,4,0,0.0,0.0,0.0,2026-07-17 07:06:54,timeout/unreachable<br />
9.9.9.9,4,0,0.0,0.0,0.0,2026-07-17 07:08:02,timeout/unreachable<br />
<br />
bs@pi4:~ &#36; ping 8.8.8.8<br />
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.<br />
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=16.7 ms<br />
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=16.9 ms]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Python warning: SynchronizedArray[Any]" has no attribute "value"  [attr-defined]]]></title>
			<link>https://python-forum.io/thread-46370.html</link>
			<pubDate>Thu, 16 Jul 2026 18:07:22 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=43977">GWLindberg</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46370.html</guid>
			<description><![CDATA[I am running on a Raspberry Pi 4, using Thonny. I am getting the above warning dozens of times. I have been coding for a long time but am new to python.<br />
<br />
Here is the definition of the structure that seems to be initiating the problem:<br />
<br />
<pre class="brush: python" title="Python Code:">class SharedWorkoutMetrics:
    def __init__(self):
        """Cross-process container variable blocks secured with context locks."""
        self.system_state = Array('c', b"STOPPED\x00\x00\x00\x00\x00\x00\x00\x00")
        self.phase_label = Array('c', b"STOPPED\x00\x00\x00\x00\x00\x00\x00\x00")
        self.interval_num = Value('i', 1)
        self.progress_scalar = Value('d', 0.0)
        self.time_left_sec = Value('d', 180.0)
        self.total_distance_m = Value('d', 0.0)
        self.instant_speed_kmh = Value('d', 0.0)
        self.max_speed_kmh = Value('d', 0.0)
        self.avg_slow_kmh = Value('d', 0.0)
        self.avg_fast_kmh = Value('d', 0.0)
        self.active_phase_idx = Value('i', 0)</pre>The definition is using the Array() import from the multiprocessing library, most of the variable types within Array don't have a value attribute, but the 'c' type does.<br />
<br />
And here is one of the lines that is a problem:<br />
<br />
<pre class="brush: python" title="Python Code:"> 
       state_list = shared_metrics_local.system_state.value.decode('utf-8').split('\x00')</pre>And again, here is the warning that I am getting:<br />
<br />
<pre><code class="codeblock error"><div class="title">Error:</div>"SynchronizedArray[Any]" has no attribute "value"  [attr-defined]</code></pre>As you will note from the above, the system_state variable in the SharedWorkoutMetrics class is a character array, and therefore has a value() attribute. Apparently the lint checker in the Assistant in Thonny (both the base, and MyPy) only see the default variable types and not the 'c' array that the variable actually is.<br />
<br />
Can anyone explain to me how to convince the lint parser that this is correct code and it doesn't need to give me the warning?<br />
<br />
Regards,<br />
Greg]]></description>
			<content:encoded><![CDATA[I am running on a Raspberry Pi 4, using Thonny. I am getting the above warning dozens of times. I have been coding for a long time but am new to python.<br />
<br />
Here is the definition of the structure that seems to be initiating the problem:<br />
<br />
<pre class="brush: python" title="Python Code:">class SharedWorkoutMetrics:
    def __init__(self):
        """Cross-process container variable blocks secured with context locks."""
        self.system_state = Array('c', b"STOPPED\x00\x00\x00\x00\x00\x00\x00\x00")
        self.phase_label = Array('c', b"STOPPED\x00\x00\x00\x00\x00\x00\x00\x00")
        self.interval_num = Value('i', 1)
        self.progress_scalar = Value('d', 0.0)
        self.time_left_sec = Value('d', 180.0)
        self.total_distance_m = Value('d', 0.0)
        self.instant_speed_kmh = Value('d', 0.0)
        self.max_speed_kmh = Value('d', 0.0)
        self.avg_slow_kmh = Value('d', 0.0)
        self.avg_fast_kmh = Value('d', 0.0)
        self.active_phase_idx = Value('i', 0)</pre>The definition is using the Array() import from the multiprocessing library, most of the variable types within Array don't have a value attribute, but the 'c' type does.<br />
<br />
And here is one of the lines that is a problem:<br />
<br />
<pre class="brush: python" title="Python Code:"> 
       state_list = shared_metrics_local.system_state.value.decode('utf-8').split('\x00')</pre>And again, here is the warning that I am getting:<br />
<br />
<pre><code class="codeblock error"><div class="title">Error:</div>"SynchronizedArray[Any]" has no attribute "value"  [attr-defined]</code></pre>As you will note from the above, the system_state variable in the SharedWorkoutMetrics class is a character array, and therefore has a value() attribute. Apparently the lint checker in the Assistant in Thonny (both the base, and MyPy) only see the default variable types and not the 'c' array that the variable actually is.<br />
<br />
Can anyone explain to me how to convince the lint parser that this is correct code and it doesn't need to give me the warning?<br />
<br />
Regards,<br />
Greg]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How long does it take to get comfortable with basics?]]></title>
			<link>https://python-forum.io/thread-46369.html</link>
			<pubDate>Thu, 16 Jul 2026 14:52:39 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=43976">IcantCodeHelp</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46369.html</guid>
			<description><![CDATA[I took a class recently, i did bad on the exams because i forgot everything when it came time to take the test, and i was just wondering. I find parameters confusing, ive been watching people code on youtube, and for example one guy passed(self.blah blah blah) which i thought was only used to define and attribute. ive watched so many videos on oop but i still feel confused, ai basically does everything for me but then i get marked down for plagarizing.]]></description>
			<content:encoded><![CDATA[I took a class recently, i did bad on the exams because i forgot everything when it came time to take the test, and i was just wondering. I find parameters confusing, ive been watching people code on youtube, and for example one guy passed(self.blah blah blah) which i thought was only used to define and attribute. ive watched so many videos on oop but i still feel confused, ai basically does everything for me but then i get marked down for plagarizing.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Saying Hi!]]></title>
			<link>https://python-forum.io/thread-46368.html</link>
			<pubDate>Mon, 13 Jul 2026 15:29:40 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://python-forum.io/member.php?action=profile&uid=43971">ryeliegh</a>]]></dc:creator>
			<guid isPermaLink="false">https://python-forum.io/thread-46368.html</guid>
			<description><![CDATA[Hi,<br />
I'm rye and found this community from a conversation on the fediverse. <br />
I didn't see an intro thread so I think this might be the best place?<br />
<br />
I have a background in systems engineering and learned python with a community called Pybites.<br />
<br />
Looking forward to meeting other folks!]]></description>
			<content:encoded><![CDATA[Hi,<br />
I'm rye and found this community from a conversation on the fediverse. <br />
I didn't see an intro thread so I think this might be the best place?<br />
<br />
I have a background in systems engineering and learned python with a community called Pybites.<br />
<br />
Looking forward to meeting other folks!]]></content:encoded>
		</item>
	</channel>
</rss>