from ftplib import FTP
ftpObject = FTP();
connectResponses = ftpObject.connect(host="ftp.exampleserver.com");
print("Connection Responses
");
print(connectResponses);
print("
");
loginResponse = ftpObject.login(user="username", passwd="password");
print("Login Response - " + loginResponse + "
");