Math Day 6: Goldbach Conjecture Trial in Python: Because of the dramatical story of Chen jing run(陈景润), Chinese society has a special sentimental enthusiasm attached to the Goldbach Conjecture. Majority of the public think it is the most difficult and fascinating maths problem in the world. The truth is Goldbach Conjecture is extremely easy to understand, yet remains unproven. Goldbach’s…

# Category: Python

## Fibonacci sequence in Music and Python

Math day 5: Fibonacci Sequence Fibonacci Sequence and Music In western music theory, we know an octave including 13 notes: C, C#, D, D#, E, F, F#, G, G#, A, A#,B, C (1,1#,2,2#,3,4,4#,5,5#,6,6#,7,i) Is there anything special about numbers 13?

## Python Little Goal 10

Python Day 16 1. distinct Average suppose we want to find the distinct average of a list. Key: we need to use SET function.

## Python Little Goal 9

Python Day 15 Love Earth Day ❤ the Earth day is coming! many years ago, i vaguely remember krupa, tim and i were spending the earth day together. I forgot who said the best way to celebrate earth day is to throw Krupa in the trash can. haha… this year, I decided to celebrate the Earth day by throwing a…

## Python Little Goal 8

Python day 14 Who is the True Lucky Guy? In Wechat red-packet game, the best luck winner usually ends up in with a negative balance, because he/she has to send out a red-packet after winning the Best Luck Red Packet. That leaves the Second best luck guy to be the true best luck overall in the game.

## Python Little Goal 7

Python Little Goal 7 Today we will try to work with Python Strings Task1: Task2: You are given a string and width . Your task is to wrap the string into a paragraph of width Example: String :ABCDEFGH, Max_width= 4 Output: ABCD EFGH <img src=”https://fangya18.com/wp-content/plugins/elementor/assets/images/placeholder.png” title=”” alt=”” /> <a href=””>Python with String Operation</a> <a href=””>Wrap String</a> Python with String Operation s = input() #alphanumerical…

## Python Little Goal 6

Python day 12 Today we will work with the character strings in Python a little bit. 1.Swap Case The task is to swap cases. Convert all lowercase letters to uppercase letters and vice versa.

## Python Little Goal 5

Python Day 11 1.Average Scores When I was in college, getting up for an 8 am Quiz was always a challenge for me, some professors had the policy take the average of a missing Quiz. Of course, Excel can do the job, since I want to be a real Data Scientist, we will learn how to find an average…

## Linear Diophantine Equation 2

Review: Last time, we went over the basic theorems of Linear Diophantine Equation. This time, we will focus on how to solve the problem. One of the most famous examples is “Chicken Bunny in the Same Cage“.

## Python Little Goal 4

Python Day 10 Leap Year I have a friend Cindy, she was actually born on Feb.29th, and I remember we celebrated her birthday together 2012 in the Maths place! Leap Year was adapted in Gregorian Calendar. There are Three Criteria: