Computer scienceFundamentalsEssentialsProgramming conceptsProgramming techniques

Best practices for writing code

Theory

Issues

Report a typo

Inspect the following code and select the styling issues it has.

if (request.type == "POST") then
    // tmp = request.id
    r_user = request.user
    if (r_user) then
        a = r_user.get_ip()
        b = r_user.get_username()
        print(a, b)
    text = request.text
    submit(text)
else
    r_user = request.user
    if (r_user) then
        a = r_user.get_ip()
        b = r_user.get_username()
        print(a, b)
    redirect()
Select one or more options from the list
___

Create a free account to access the full topic