# -*- coding: utf-8 -*- """ Use of conditions for passwords @authors: katkaranikola stkarlos """ username = raw_input("dose kodiko: ") print username if (len(username) == 8) and (username[1] == username[-2]) and (username.count('!') == 1) : print 'accepted' else: print "not accepted"