Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson3_diy4

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • pygame_lesson3_diy4
  • a.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · 1d93037b
    BellCodeEditor committed 2 years ago
    1d93037b
a.py 222 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import turtle
a = input("please")
a = int(a)
b = 0
while True:
    if a != 1:
        if a%2 == 1:
            a = a*3+1
        else:
            a /= 2
        b += 1
    else:
        break
print(b)
exit()