---
title: "Discussion on \"Project Euler Problem#26\" | Hashnode"
description: "Discussion on \"Project Euler Problem#26\". import unittest\n\ndef max_reciprocal_cycle(num):\n    if type(num)==float:\n        num=int(num)\n    if type(num)!=int or num<1:\n        return None    \n    max_length=0\n    max_num=1\n    for i in range(2,num+1):\n        numerator=10\n        remainders=..."
url: "https://hashnode.com/posts/project-euler-problem26/648df0d2578b47894c6af871"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Project Euler Problem#26](https://mycodingjourneyy.hashnode.dev/project-euler-problem26?utm_source=hashnode&utm_medium=feed)

import unittest def max\_reciprocal\_cycle(num): if type(num)==float: num=int(num) if type(num)!=int or num<1: return None max\_length=0 max\_num=1 for i in range(2,num+1): numerator=10 remainders=...

Jun 17, 2023 · 1 min read · mycodingjourneyy.hashnode.dev  
Read the article

-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#projecteulerproblem](https://hashnode.com/tag/projecteulerproblem)

## Written by

[Varjinth subramaniyan](https://hashnode.com/@varjinth)

@varjinth

  
[View profile](https://hashnode.com/@varjinth)

blogger

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
