omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Verifying a password

    Pythonista
    if elif else
    3
    3
    747
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • blindscubajr
      blindscubajr last edited by ccc

      Why isn’t this code working?
      Help plz👍

      username = input('Enter Username>>> ') 
      
      if username == 'silas':
      	
      	print('Access granted')
      	print('Hello SILAS')
      
      elif username == 'silas': False
      print('Access Denied')
      
      1 Reply Last reply Reply Quote 0
      • mcriley821
        mcriley821 last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by ccc

          username = input('Enter Username>>> ') 
          
          if username == 'silas':
              print('Access granted')
              print('Hello SILAS')
          else:
              print('Access Denied')
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors