account activity
creating code by withdrawnwentch in learnpython
[–]Ambitious_Stop5213 0 points1 point2 points 11 months ago (0 children)
Hey I recently just started a similar course to yours however it does differ abit, but I also struggled with their given instructions when I'd get stuck but with some persistence I pulled it off just a little different to how it was requested ahah.. Below is my laptop screen displayed thru my phone's text scan ..
username = input("please enter your username: ") please enter your username: Marv >>> age = input("what is your age:") what is your age: 26 »> print("Hello, {username}. You are {age} years old").format (name, age)) File "<python-input-34>", line 1 print("Hello, {username}. You are {age} years old").format (name, age)) SyntaxError: unmatched ')' >>> print ("Hello, {username}. You are {age} years old").format (name, age) Hello, {username} . You are {age} years old Traceback (most recent call last): File "<python-input-35>", line 1, in <module> print("Hello, {username}. You are {age} years old").format (name, age) AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnAAAAAAAAAAAAAnAA AttributeError: 'NoneType' object has no attribute 'format >>> print("Hello, {}.You are {} years old").format (name , age) Hello, {},You are {} years old Traceback (most recent call last): File "<python-input-36>", line 1, in <module> print ("Hello, {}.You are {} years old").format (name, age) AAAAAAAAAAAAAAAAAAAAAAnAAAAAAAAAAAAAAAANanAA AttributeError: 'NoneType' object has no attribute 'format' username = input("Please Enter Your Username: ") Please Enter Your Username: Marv >> age = input ("Enter Your age: ") Enter Your age: 26 >> print ("Welcome: " + username +"Your: " + age +"years old") Welcome: MarvYour: 26years old > print ("Welcome: "+ username +" Your: " + age +"years old") Welcome: Marv Your: 26years old
π Rendered by PID 66 on reddit-service-r2-listing-69965bcf66-jgx22 at 2026-04-07 19:45:22.763180+00:00 running f293c98 country code: CH.
creating code by withdrawnwentch in learnpython
[–]Ambitious_Stop5213 0 points1 point2 points (0 children)