#python project 2 : Password Generator Getting to know how string functions work, that's really fascinating, which decreases the length of the program, by adding a single word string. #program import random import string print("welcome to password generator") length=int(input('enter length of password')) letters=string.ascii_letters numbers=string.digits symbols=string.punctuation all_characters=letters+numbers+symbols password='' for i in range(length): password+=random.choice(all_characters) print('generated password', password) #pythonprograms #programs #passwordgenerator #learning
Python Password Generator Program
More Relevant Posts
-
🚀 Automated My Downloads Folder Using Python Today, I built a simple yet useful File Organizer script using Python that automatically sorts files into folders. We often download many files, and our Downloads folder becomes messy. So I created a script to organize it automatically 👇 ✨ What This Script Does • Scans all files in the Downloads folder • Moves .jpg files into an Images folder • Moves .pdf files into a PDFs folder • Helps keep files clean and organized ⚙️ Technologies Used • Python • os module (for file handling) • shutil module (for moving files) 🧠 What I Learned • Working with file systems in Python • Automating real-world tasks • Writing efficient and reusable scripts • Importance of automation in daily life 💡 Key Insight Even small automation scripts can save time and improve productivity. If you have suggestions to improve this script (like handling more file types), I’d love to hear them! 😊 #Python #Automation #Programming #LearningInPublic #DeveloperJourney #Productivity #10000Coders #BuildInPublic
To view or add a comment, sign in
-
I wish I knew these Python tips earlier. Here are some simple but powerful tricks every developer should know: 1. Swap variables without temp variable a, b = b, a 2. List comprehension (clean & fast) squares = [x*x for x in range(5)] 3. Use enumerate() instead of manual index for i, val in enumerate(list): 4. Use zip() to iterate multiple lists for a, b in zip(list1, list2): 5. Use set() to remove duplicates unique = list(set(data)) 6. Dictionary get() to avoid errors value = my_dict.get("key", "default") These small tricks make your code: -- Cleaner -- Faster -- More Pythonic Python is simple—but writing clean Python is a skill. Which tip did you already know? #Python #Backend #Python_Developer #Programming #DeveloperTips #Coding #SoftwareEngineering #FastAPI #Flask #Django
To view or add a comment, sign in
-
-
🚀 Python Variables Explained (Beginner Friendly) Today I practiced Python variables and naming conventions 1. Basic Variable Declaration name = "Ankaj" age = 36 salary = 50000 print("Name:", name) print("Age:", age) print("Salary:", salary) 2. Variable Naming Rules user_name = "Ankaj" age1 = 25 _salary = 30000 print(user_name) print(age1) print(_salary) 3. Constants Convention (Uppercase) PI = 3.14 MAX_SPEED = 120 COMPANY_NAME = "ABC Pvt Ltd" print(PI) print(MAX_SPEED) print(COMPANY_NAME) Key Learnings: * Variables store data values * Naming rules matter in clean code * Constants are written in UPPERCASE by convention I’m building my Python skills step by step Follow Ankaj Python Hub for my daily learning journey #Python #Coding #LearnPython #100DaysOfCode #Programming
To view or add a comment, sign in
-
🚀 Python Variables Explained (Beginner Friendly) Today I practiced Python variables and naming conventions 1. Basic Variable Declaration name = "Ankaj" age = 36 salary = 50000 print("Name:", name) print("Age:", age) print("Salary:", salary) 2. Variable Naming Rules user_name = "Ankaj" age1 = 25 _salary = 30000 print(user_name) print(age1) print(_salary) 3. Constants Convention (Uppercase) PI = 3.14 MAX_SPEED = 120 COMPANY_NAME = "ABC Pvt Ltd" print(PI) print(MAX_SPEED) print(COMPANY_NAME) Key Learnings: * Variables store data values * Naming rules matter in clean code * Constants are written in UPPERCASE by convention I’m building my Python skills step by step Follow Ankaj Python Hub for my daily learning journey #Python #Coding #LearnPython #100DaysOfCode #Programming
To view or add a comment, sign in
-
🚀 Project Completed: Expense Tracker using Python I developed a command-line application to track daily expenses using Python and CSV file handling. 🔹 Features: ✔ Add and store expenses ✔ View all transactions ✔ Calculate total spending 🔗 GitHub Repository: https://lnkd.in/gQ4nwR95. This project helped me understand file handling and build a real-world application. #Python #DataScience #BeginnerProject #Learning
To view or add a comment, sign in
-
Small Change, Big Performance Gain I recently tested a simple optimization in Python using ThreadPoolExecutor for an API-heavy workflow. First Case : 2 workers Total tasks: 52 ( external API calls) Time taken: 👉 436.489 seconds Second Case : 10 workers Total tasks: 52 ( external API calls) Time taken: 👉 90.856 seconds 💥 Simple takeaway If your workload involves: 1. API calls 2. database queries 3. external service calls then improving concurrency can* have a big impact.
To view or add a comment, sign in
-
Python Mini Project : Bill Splitter As part of my Python learning journey, I built a simple Bill Splitter project to strengthen my understanding of numbers and mathematical operations. Concepts Applied: Numeric Data Types – Worked with both int and float values Mathematical Operations – Performed addition, multiplication, and division Real-world Logic – Calculated total bill, added tip, and split among friends Key Takeaway: This project helped me understand how Python handles numeric operations using both integers and floating-point numbers, which is essential for real-world applications like financial calculations. Why this matters: Useful in budgeting and financial tools Core logic used in many real-world applications Strengthens problem-solving with numbers Step by step, I’m building a strong foundation in Python by creating practical mini projects. Next step: Enhancing this with user input and better formatting. #Python #MiniProject #LearningPython #DataAnalytics #CodingJourney #100DaysOfCode #TechSkills #Freecodecamp
To view or add a comment, sign in
-
-
Master Python lists fast https://lnkd.in/dBMXaiCv https://lnkd.in/dtFbRP96 Use these daily Add and update • append(x) Adds item to end • insert(i, x) Adds at position Remove • remove(x) Deletes first match • pop(i) Removes and returns item Clear and copy • clear() Empties list • copy() Creates new list Search • count(x) Counts occurrences • index(x) Finds position Reorder • reverse() Reverses list • sort() Sorts values Quick example numbers = [1, 2, 3] numbers.append(4) numbers.pop() Result [1, 2, 3] Practice Day 1 Build list manager Day 2 Filter and sort data Day 3 Handle duplicates If you don’t practice You will forget Question Can you manipulate lists without looking up methods #Python #Programming #Coding #ProgrammingValley
To view or add a comment, sign in
-
-
Really excited to share my week1 python learning blog. Topic: variables and data Types In this article ,I have covered up by exploring the fundamentals of python including variables, examples and , data types as well with the common bugs with the solutions. please read here: https://lnkd.in/gryZb6-t #python #programing #Learningjourney#GitHub #Coding#Developers
To view or add a comment, sign in
-
🐍 Day 26 of My 30-Day Python Learning Challenge 🚀 Today I enhanced my Log File Analyzer Project by adding a new feature. 📌 New Feature: Top N Words (User Choice) Instead of showing only top 3 words, users can now choose how many top words they want. 📌 Code: top_n = int(input("Enter number of top words: ")) top_words = sorted(word_count.items(), key=lambda x: x[1], reverse=True)[:top_n] print(top_words) --- 📊 What Changed? • Before → Fixed output (Top 3 words) • Now → Dynamic output (User-defined) --- 💡 Why this matters? • Makes the project flexible • Improves user experience • Closer to real-world applications --- 📊 Quick Question What will happen if user enters a very large number? A) Error B) Full list is returned C) Empty output D) Program stops Answer tomorrow 👇 #Python #MiniProject #ProjectEnhancement #LearningInPublic #SoftwareDeveloper
To view or add a comment, sign in
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development