Categories > WeAreDevs > Suggestions >
Code block bugs and Rogue Hub on scripts page
Posted
So, first, code blocks are kinda broken lmfao, they look pretty ugly and don't really work anymore.
Also, Rogue Hub is still on the scripts page despite it being discontinued
Code block example below:
import random
import string
def generate_password(length=12):
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(random.choice(characters) for i in range(length))
return password
we are dead
Replied
@tempegoreng, You were right. The feature works, but it wasn't set to accept Python; Although the editor option list made it seem so. I've just now added support for it. I've also added support for Rust.
import random
import string
def generate_password(length=12):
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(random.choice(characters) for i in range(length))
return password
// This is the main function.
fn main() {
// Statements here are executed when the compiled binary is called.
// Print text to the console.
println!("Hello World!");
}
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post