print("meow")
print("meow")
print("meow")
i=3
while i!=0:
print("meow")
i=i-1
i=0
while i<3:
print("meow")
i=i+1
i=0
while i<3:
print("meow")
i+= 1
for i in [0,1,2]:
print("meow")
for i in range(3):
print("meow")
for i in range(1000000):
print("meow")
for _ in range(3):
print("meow")
print("meow"*3)
print("meow\n"*3)
print("meow\n"*3,end="")
n=int(input("what's n ? "))
if n < 0:
print(n=int(input("what's n ? ")))
if n <0:
print(n=int(input("what's n ? ")))
while True:
n=int(input("what's n ? "))
if n < 0:
continue
else:
print("meow\n"*n,end="")
break
while True:
n=int(input("what's n ? "))
if n > 0:
break
for _ in range(n):
print("meow")
def main():
n=get_number()
meow(n)
def get_number():
while True:
n=int(input("what's n ? "))
if n>0:
return n
# retuer n
def meow(n):
for _ in range(n):
print("meow")
main()
def main():
n=get_number()
meow(n)
def get_number():
while True:
n=int(input("what's n ? "))
if n>0:
break
return n
def meow(n):
for _ in range(n):
print("meow")
main()
students = ["Hermione","Harry","Ron"]
print(students[0])
print(students[1])
print(students[2])
students = ["Hermione","Harry","Ron"]
for student in students:
print(student)
students = ["Hermione","Harry","Ron"]
for _ in students:
print(_)
students = ["Hermione","Harry","Ron"]
for i in range(len(students)):
#print(i)=0,1,2
print(students[i])
students = ["Hermione","Harry","Ron"]
for i in range(len(students)):
#print(i)=0,1,2
print(i+1,students[i])
students = ["Hermione","Harry","Ron","Draco"]
house =["Gryffindor","Gryffindor","Gryffindor","Slytherin"]
students={"Hermione":"Gryffindor","Harry":"Gryffindor","Ron":"Gryffindor"}
students={
"Hermione":"Gryffindor",
"Harry":"Gryffindor",
"Ron":"Gryffindor"
}
students={
"Hermione":"Gryffindor",
"Harry":"Gryffindor",
"Ron":"Gryffindor",
"Draco":"Slytherin"
}
print(students["Hermione"])
print(students["Harry"])
print(students["Ron"])
print(students["Draco"])
students={
"Hermione":"Gryffindor",
"Harry":"Gryffindor",
"Ron":"Gryffindor",
"Draco":"Slytherin"
}
for student in students:
print(student)
students={
"Hermione":"Gryffindor",
"Harry":"Gryffindor",
"Ron":"Gryffindor",
"Draco":"Slytherin"
}
for S in students:
print(S,students[S])
students={
"Hermione":"Gryffindor",
"Harry":"Gryffindor",
"Ron":"Gryffindor",
"Draco":"Slytherin"
}
for S in students:
print(S,students[S],sep=",")
students=[
{"name":"Hermione","house":"Gryffindor","patronus":"Otter"},
{"name":"Harry","house":"Gryffindor","patronus":"Stag"},
{"name":"Ron","house":"Gryffindor","patronus":"Jakc Russell terrier"}
]
students=[
{"name":"Hermione","house":"Gryffindor","patronus":"Otter"},
{"name":"Harry","house":"Gryffindor","patronus":"Stag"},
{"name":"Ron","house":"Gryffindor","patronus":"Jakc Russell terrier"},
{"name":"Draco","house":"Slytherin","patronus":"None"}
]
students=[
{"name":"Hermione","house":"Gryffindor","patronus":"Otter"},
{"name":"Harry","house":"Gryffindor","patronus":"Stag"},
{"name":"Ron","house":"Gryffindor","patronus":"Jakc Russell terrier"},
{"name":"Draco","house":"Slytherin","patronus":"None"}
]
for S in students:
print(S["name"])
students=[
{"name":"Hermione","house":"Gryffindor","patronus":"Otter"},
{"name":"Harry","house":"Gryffindor","patronus":"Stag"},
{"name":"Ron","house":"Gryffindor","patronus":"Jakc Russell terrier"},
{"name":"Draco","house":"Slytherin","patronus":"None"}
]
for S in students:
print(S["name"],S["house"],S["patronus"],sep=", ")
print("#")
print("#")
print("#")
for _ in range(3):
print("#")
def main():
print_column(3)
def print_column(height):
for _ in range(height):
print("#")
main()
def main():
print_column(3)
def print_column(height):
print("#\n"*height,end="")
main()
def main():
print_row(4)
def print_row(width):
print("?"*width)
main()
def main():
print_square(3)
def print_square(size):
for i in range(size):
for j in range(size):
print("#",end="")
print()
main()
def main():
print_square(3)
def print_square(size):
for i in range(size):
print("#"*size)
main()