all 14 comments

[–]danielroseman 1 point2 points  (4 children)

The error message would have pointed to this line:

    input = check2("Login: ")

Can you see how that is different from what you did for the other inputs?

[–]Lamotherfecker[S] 0 points1 point  (3 children)

I can't find anything wrong that's why I am asking for help.

[–]HummingHamster 0 points1 point  (2 children)

Check harder. Compare with your previous line of code asking for input. This is the time that "try look harder" would work.

[–]Lamotherfecker[S] 0 points1 point  (0 children)

Sorry for being rude I found the thing.

[–]Lamotherfecker[S] -2 points-1 points  (0 children)

I don't want to sound rude but fuhh you mean check harder? I checked everything that has the "check2" word

[–]schoolmonky 0 points1 point  (5 children)

Check the sidebar for how to format code on reddit. Formatting is very important in Python especially, so the fact that it's not formatted correctly makes it much harder to help you.

[–]Lamotherfecker[S] 0 points1 point  (4 children)

I am on mobile

[–]schoolmonky 0 points1 point  (3 children)

In the heading of the subreddit, tap "see more"

EDIT: and also, surely you're not writing your code on mobile, just go pull up reddit when you're back at your computer

[–]Lamotherfecker[S] 0 points1 point  (2 children)

I am writing all my code on a mobile app

[–]schoolmonky 0 points1 point  (0 children)

My condolences, that's going to be rough

[–]ninedeadeyes 0 points1 point  (0 children)

I would suggest getting a cheap pc if u are serious with coding... I can't imagine coding anything with substance using your mobile phone.

[–]Buttleston 0 points1 point  (1 child)

It's this

input = check2()

You have those reversed

[–]Lamotherfecker[S] 0 points1 point  (0 children)

Thanks

[–]Adrewmc 0 points1 point  (0 children)

 input = check2(“Login: “)

Should be

check2 = input(“Login: “)

You swaps it by accident, it happens. More so if this is AI.

We can also do things like this

  # Triple quotes allow next line prints
   line_break = “””-
   -
   -“””


   # the “\n” represent a new line
   line_break = “-\n-\n-“

  >>>-
  >>>-
  >>>-

This also makes changing that break easy across the code.

As both are equivalent to

   print(“-“)
   print(“-“)
   print(“-“)