r/7people • u/TotallyNotNova24 • Mar 03 '26
Wow This Fic Is So Good
This Fic Is So Amazing I Wish I Can Read More❤️❤️❤️❤️❤️❤️
r/7people • u/TotallyNotNova24 • Mar 03 '26
This Fic Is So Amazing I Wish I Can Read More❤️❤️❤️❤️❤️❤️
r/7people • u/Fickle-Cucumber-224 • Mar 02 '26
Hey everyone! I'm u/Fickle-Cucumber-224, a founding moderator of r/7people.
This is our new home for all things related to {{ADD WHAT YOUR SUBREDDIT IS ABOUT HERE}}. We're excited to have you join us!
What to Post
Post anything that you think the community would find interesting, helpful, or inspiring. Feel free to share your thoughts, photos, or questions about {{ADD SOME EXAMPLES OF WHAT YOU WANT PEOPLE IN THE COMMUNITY TO POST}}.
Community Vibe
We're all about being friendly, constructive, and inclusive. Let's build a space where everyone feels comfortable sharing and connecting.
How to Get Started
Introduce yourself in the comments below.
Post something today! Even a simple question can spark a great conversation.
If you know someone who would love this community, invite them to join.
Interested in helping out? We're always looking for new moderators, so feel free to reach out to me to apply.
Thanks for being part of the very first wave. Together, let's make r/7people amazing.
r/7people • u/Fickle-Cucumber-224 • Apr 15 '26
I'm not really feeling great rn, plsu school is catching up on me rn. Some not very great things are happening now.
But have a good day my fellow coders!
r/7people • u/Fickle-Cucumber-224 • Mar 04 '26
# python constructors
# constructors are used for casting variables
#implicit
x = 5/2
y = 'bob'
print(type(x))
print(type(y))
# explicit
'''
a = 5
b = 5.0
c = '5'
'''
a = int(5) # casts a into an interger
b = float(5) # casts b into a float
c = str(5) # casts c into a string
# FUNCTIONS
import datetime
# python functions are used to make custom code and functionality
# all functions re defined using def()
# after defining a function, they need to be executed
def add_nums(num1, num2): # add_nums is the function name, num1 and num2 are parameters
return num1 + num2 # inside indentation, we specify what to do
# soem functions don't have any prameters
print(add_nums(5, 6))
def greeting():
print("Hello Angoula Fish :)")
greeting()
def greeting2(name):
print("Hello master", name)
greeting2("Lucy")
greeting2("Marucs")
greeting2("Aiden")
now = datetime.datetime.now()
print(now) # prints time on the computer
print(now.hour) # prints the hour in 24 hour format (1pm is 13)
def greeting3(name):
if now.hour >= 1 and now.hour <= 12:
print("Good morning", name)
elif now.hour >= 13 and now.hour <= 18:
print("Good afternoon", name)
elif now.hour >= 19 and now.hour <= 21:
print("Good evening", name)
elif now.hour >= 22 and now.hour <= 24:
print("Good night", name)
greeting3("Person")r/7people • u/Fickle-Cucumber-224 • Mar 04 '26
# DATA TYPES
x = 5 # interger: whole number
y = 5.0 # float: decimal number
z = '5' # string: text
a = True
b = False # boolean: either true or false
# collections types
#list
my_fav_foods = ['steak', 'pho', 'fries', 'kfc', 'maccas', 'burgers' ]
print(my_fav_foods) # prints the whole list
print(my_fav_foods[0]) # prints the first item in list
print(my_fav_foods[1]) # prints 2nd item in list
print(my_fav_foods[-1]) # prints last item in list
print(my_fav_foods[-2]) # prints 2nd last item in list
friends = ['Tom', 'Ashley', 'Mary']
for i in friends:
print('My friend is', i)
# for loop
for j in range(len(friends)): # for loop in list
print('Hello', friends[j])
# PYTHON COLLECTIONS
Fav_cartoon_characters = ['Gojo', ' Homer simpsons', 'Ash', 'Robin', 'Tha Monkey']
# lists allow duplicate values
# you can get the length of the list
print("I have", len(Fav_cartoon_characters), 'Fave characers')
# lists allow any data type, including more lists
mylist1 = ['apple', 'banana','cherry']
mylist2 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
mylist3 = [True, False, False]
mylist4 = ['apple', 1, False, 'banana']
mylist5 = [mylist1, mylist2, mylist3, mylist4]
print(mylist5)
# by the way, to get data type of an object, use type()
x2 = 1
y2 = 1.1
z2 = '1'
print(type(x2)) # returns int
print(type(y2)) # returns float
print(type(z2)) # returns string
print(type(mylist1)) # returns list
mylist6 = list(('apple', 'banana', 'cherry'))
print(mylist6)
# access
print(mylist6[0])
# changing an item
mylist6[0] = 'mango'
print(mylist6)
# adding an item
mylist6.append('orange')
print(mylist6)
# inserting an item
mylist6.insert(1, 'kiwi fruit')
print(mylist6)
# join 2 lists together by extending
mylist6.extend(mylist5)
print(mylist6)
# remove item based on value
mylist6.remove('banana')
print(mylist6)
# remove item based on position
mylist6.pop(3) # removes 4th item in list
print(mylist6)
# alternatively you can remove using del (not a function)
del mylist6[0]
print(mylist6)
# clear all list value, but don't delete the list
mylist6.clear()
print(mylist6)
# delete the list altogether
del mylist6
# CHALLENGE
# create a list of 4 of your best friends
# append your 5th best friend into the list
# create a list of 4 school acquaintences
# extend your friends list by joining both lists togther
# delete the 5th item
# change the 3rd item to 'Bob the builder'
# Get the length of the list and add the number to the 4th item of the list
best_friends = ['Amy', 'Nael', 'Claire', 'Abby']
best_friends.append('Eva')
school_aqu = ['Ms.Eriksen', 'Voilet', 'Ms.Osullivan', 'Ms.Worthington']
best_friends.extend(school_aqu)
best_friends.pop(4)
best_friends[2] = 'Bob the builder'
number_in_list = len(best_friends)
best_friends.insert(3, number_in_list)
print(best_friends)
# loop through list
# with for in
friends2 = ['Amy', 'Bob', 'Cherry']
for friend in friends2: # makes friends iterator equal to each string
print(friend)
for i in range(len(friends2)): # makes i iterate equal to each string
print(friends2(i))
# for, in keywords
fruits = ['apple', 'banana', 'cherry', 'kiwi', 'mango']
newlist = []
# newlist = fruits
# print(newlist)
for x in fruits:
if "a" in x:
newlist.append(x)
print(newlist)
#sorting lists
#sort in ascending order
#fruits.sort()
fruits.sort(reverse=True)
print(fruits)
fave_numbers= [4, 1, 33, 12, 56, -3]
fave_numbers.sort() # sort in ascednding order
print(fave_numbers)
fave_numbers.sort(reverse=True) # sorts in descending order
print(fave_numbers)
# list comprehension
'''
list comprehension offers a shorter syntax when
you want to create a new list based on an existing list
'''
# EG
'''
based on a list of fruits, you want to create a new list
with only fruits containing 'a'
'''
fruits = ['apple', 'banana', 'cherry', 'kiwi', 'mango']
newlist = [x for x in fruits if "a" in x]
# add anything that is not 'apple
fruits = ['apple', 'banana', 'cherry', 'kiwi', 'mango']
newlist = [x for x in fruits if x != "apple"]
# add anything with no if statement - if it is optional
fruits = ['apple', 'banana', 'cherry', 'kiwi', 'mango']
newlist = [x for x in fruits]
# same thing with number comphrension
# create new list with numbers less than 10
newlist = [x for x in range(20) if x < 10]
print(newlist)
# turning a string into a list
string = "3 6 2 6 22 4 2"
mylist = string.split()
print(mylist)
# turning a string to a list of certain values
# in order to turn a string list into int list, we use map
int_list = list(map(int, string.split()))
print(int_list)r/7people • u/Fickle-Cucumber-224 • Mar 04 '26
import time
# PYTHON INTRO 1
print('Hello Person') # This is a comment
'''
this
is a really
looonnngggg
comment
'''
"""
That's so cool
sooo cool
"""
x = 6
y = 5
# MATHS OPPERATIONS
print(x+y) # plus
print(x-y) # minus
print(x/y) # divide
print(x%y) # modulous/remainder
# Loops
# for loops repeat something a fixed number of times
for i in range(5):
# counts from 0 to 5
print('for', i)
# for loops can have a specified start position
for j in range(10, 15):
# counts form 10 to 15
print('for', j)
# for loops can also have a step size (counting by 2 or 3, etc.)
for k in range(20, 50, 5):
# counts form 20 to 50 in 5's (20, 25, etc.)
print('for', k)
# while loops
# repeats something WHILE condition is true
'''
counter = 10
while counter > 0:
print('t minus', counter, 'seconds to detonation')
counter = counter - 1 # counter = counter -= 1 (shorter way)
time.sleep(1)
print('counter terrorists win')
'''
beeper = 0
while beeper < 10:
print('bee' + (beeper * 'e') + 'p')
print('SPLODE')
# conditionals
age = 12
if age > 16 and age < 80:
print('you can drive')
elif age >= 80:
print('you too old')
elif age < 16:
print('bro too young')
else:
print('some error')
my_phone = 'iphone'
if my_phone == 'iphone':
print('noice')
else:
print('weirdo') # JK, this was a joke lolr/7people • u/Fickle-Cucumber-224 • Mar 04 '26
Ps: i deletd a post because i releiased i had to chnage somthing
General rule:
Post anything, but just be a normal decent human being. ok? no offensive joke, but opinions are allowed.
share with everyone what u like, etc.