Filter interviews by
I applied via Campus Placement and was interviewed in Sep 2024.
Import random
import string
def generate_password(length=12, use_special_chars=True):
characters = string.ascii_letters + string.digits
if use_special_chars:
characters += string.punctuation
password = ''.join(random.choice(characters) for _ in range(length))
return password
def main():
print("Password Generator")
length = int(input("Enter the desired length of the password: "))
use_special = input("Include special characters? (yes/no): ").lower() == 'yes'
password = generate_password(length, use_special)
print(f"Generated Password: {password}")
if __name__ == "__main__":
main()
Top trending discussions
based on 1 review
Rating in categories
Software Developer
8
salaries
| ₹2 L/yr - ₹6 L/yr |
Software Engineer
3
salaries
| ₹3.6 L/yr - ₹3.6 L/yr |
Programmer
3
salaries
| ₹3 L/yr - ₹3.2 L/yr |
Senior Mobile Application Developer
3
salaries
| ₹5.8 L/yr - ₹6.4 L/yr |
Full Stack Software Developer
3
salaries
| ₹3 L/yr - ₹7.2 L/yr |
Infosys
TCS
Wipro
HCLTech