My Python code collection! - Deepstash

## hackerrank 2d array: day 11 of 30 days of code

#!/bin/python3

import math

import os

import random

import re

import sys

if __name__ == '__main__':

arr = []

for _ in range(6):

arr.append(list(map(int, input().rstrip().split())))

sum = 0

tarr = []

for l in range(0,4):

for k in range(0,4):

for i in range(l,l+3):

for j in range(k,k+3):

if i == l+1 and ( j == k or j == k+2):

continue

else:

sum += arr[i][j]

tarr.append(sum)

sum = 0

print(max(tarr))

1

## fb logo with python turtle, from turtle import *

speed(10)

color("#0270d6")

Screen().bgcolor("yellow")

penup()

goto(0, 150)

pendown()

begin_fill()

forward(150)

circle(-50, 90)

forward(300)

circle(-50, 90)

forward(300)

circle(-50, 90)

forward(300)

circle(-50, 90)

forward(150)

end_fill()

color("white")

penup()

goto(140, 80)

pendown()

begin_fill()

right(180)

forward(50)

circle(80, 90)

forward(50)

right(90)

forward(80)

left(90)

forward(40)

left(90)

forward(80)

right(90)

forward(160)

left(90)

forward(55)

left(90)

forward(160)

right(90)

forward(70)

left(80)

forward(45)

left(100)

forward(80)

right(90)

forward(40)

circle(-40, 90)

forward(40)

left(90)

forward(45)

end_fill()

hideturtle()

done()

1

CURATED BY

Improve the process

# CURATOR'S NOTE

I will be collecting artful code on python here, it's in a nascent stage but hope it becomes awesome with time

## More like this

1 idea

Python: Part Six

🚶 On a walk

3 ideas

Human Behavior Laws

😎 On Computer

14 ideas

## Explore the World’sBest Ideas

### 200,000+ ideas on pretty much any topic. Created by the smartest people around & well-organized so you can explore at will.

#### An Idea for Everything

Explore the biggest library of insights. And we've infused it with powerful filtering tools so you can easily find what you need.

Knowledge Library

#### Powerful Saving & Organizational Tools

Save ideas for later reading, for personalized stashes, or for remembering it later.

# Personal Growth

### Organize your ideas & listen on the go. And with Pro, there are no limits.

#### Listen on the go

Just press play and we take care of the words.

#### Never worry about spotty connections

No Internet access? No problem. Within the mobile app, all your ideas are available, even when offline.

#### Get Organized with Stashes

Ideas for your next work project? Quotes that inspire you? Put them in the right place so you never lose them.

My Stashes

Join

2 Million Stashers

4.8

5,740 Reviews

App Store

4.7

72,690 Reviews

samz905

Don’t look further if you love learning new things. A refreshing concept that provides quick ideas for busy thought leaders.

Best app ever! You heard it right. This app has helped me get back on my quest to get things done while equipping myself with knowledge everyday.

Ashley Anthony

This app is LOADED with RELEVANT, HELPFUL, AND EDUCATIONAL material. It is creatively intellectual, yet minimal enough to not overstimulate and create a learning block. I am exceptionally impressed with this app!

Sean Green

Great interesting short snippets of informative articles. Highly recommended to anyone who loves information and lacks patience.

Laetitia Berton

I have only been using it for a few days now, but I have found answers to questions I had never consciously formulated, or to problems I face everyday at work or at home. I wish I had found this earlier, highly recommended!

Ghazala Begum

Even five minutes a day will improve your thinking. I've come across new ideas and learnt to improve existing ways to become more motivated, confident and happier.

Giovanna Scalzone

Brilliant. It feels fresh and encouraging. So many interesting pieces of information that are just enough to absorb and apply. So happy I found this.

Jamyson Haug

Great for quick bits of information and interesting ideas around whatever topics you are interested in. Visually, it looks great as well.

20x Faster

without
deepstash

with
deepstash

with

deepstash

Unlimited idea saving & library

Unlimited history

Unlimited listening to ideas