Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
54 lines (39 loc) · 1.34 KB

File metadata and controls

54 lines (39 loc) · 1.34 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 16 15:38:25 2020
@author: sadrachpierre
"""
class Instagram_User:
def __init__(self, user_name, name, email, private):
self.user_name = user_name
self.name = name
self.email = email
self.private = private
def isPrivate(self):
if self.private:
print("{} has a Private Account".format(self.name))
else:
print("{} has a Public Account".format(self.name))
insta_user_1 = Instagram_User('nychef100', 'Jake Cohen', 'jcohen100@gmail.com', True)
insta_user_2 = Instagram_User('worldtraveler123', 'Maria Lopez', 'mlopez123@gmail.com', False)
print(insta_user_1.email)
print(insta_user_2.email)
insta_user_1.isPrivate()
insta_user_2.isPrivate()
'''
insta_user_1 = Instagram_User()
insta_user_2 = Instagram_User()
print("User Object 1: ", insta_user_1)
print("User Object 2: ", insta_user_2)
insta_user_1.user_name = 'nychef100'
insta_user_2.user_name = 'worldtraveler123'
insta_user_1.name = 'Jake Cohen'
insta_user_2.name = 'Maria Lopez'
insta_user_1.email = 'jcohen100@gmail.com'
insta_user_2.email = 'mlopez123@gmail.com'
insta_user_1.private = True
insta_user_2.private = False
print("User Name of user 1: ", insta_user_1.user_name)
print("User Name of user 2: ", insta_user_2.user_name)
'''
Morty Proxy This is a proxified and sanitized view of the page, visit original site.