HTML
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
Python
import random
import string
def change_length():
want_to_change_length = input(
"Do you want to change the default password length ? (yes/no) : "
)
if want_to_change_length == "yes":
try:
new_length = int(input("Enter new password length(number): "))
change_length.new_length = new_length
print(f"The default password length was changed to {new_length}\n")
except:
print("The password length must be numerical")
change_length()
elif want_to_change_length == "no":
change_length.new_length = 8
else:
print("Not a valid response, please try again !")
change_length()
return
C++
#include <iostream>
using namespace std;
int main()
{
int arr[5];
arr[0] = 5;
arr[2] = -10;
// this is same as arr[1] = 2
arr[3 / 2] = 2;
arr[3] = arr[0];
cout << arr[0] << " " << arr[1] << " " << arr[2] << " "
<< arr[3];
return 0;
}