Skip to main content
added 60 characters in body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165

IWMBAICBIWT, Python

import sys

inputs = sys.argv

degreesleft = int(inputs[2]sys.argv[2])
peopleleft = int(inputs[4]sys.argv[4])

print(intround(degreesleft/peopleleft))

IWMBAICBIWT (It was my birthday and I cried because I wanted to) assumes that there is a relationship between the degrees left and the number of people left. Let's hope it works!

Should work in all Pythons.

Edit:

Storing sys.argv in inputs was a bit wasteful...

IWMBAICBIWT, Python

import sys

inputs = sys.argv

degreesleft = int(inputs[2])
peopleleft = int(inputs[4])

print(int(degreesleft/peopleleft))

IWMBAICBIWT (It was my birthday and I cried because I wanted to) assumes that there is a relationship between the degrees left and the number of people left. Let's hope it works!

Should work in all Pythons.

IWMBAICBIWT, Python

import sys

degreesleft = int(sys.argv[2])
peopleleft = int(sys.argv[4])

print(round(degreesleft/peopleleft))

IWMBAICBIWT (It was my birthday and I cried because I wanted to) assumes that there is a relationship between the degrees left and the number of people left. Let's hope it works!

Should work in all Pythons.

Edit:

Storing sys.argv in inputs was a bit wasteful...

edited body
Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165

IWMBAICBIWT, Python

import sys

inputs = sys.argv

degreesleft = int(inputs[1]inputs[2])
peopleleft = int(inputs[2]inputs[4])

print(int(degreesleft/peopleleft))

IWMBAICBIWT (It was my birthday and I cried because I wanted to) assumes that there is a relationship between the degrees left and the number of people left. Let's hope it works!

Should work in all Pythons.

IWMBAICBIWT, Python

import sys

inputs = sys.argv

degreesleft = int(inputs[1])
peopleleft = int(inputs[2])

print(int(degreesleft/peopleleft))

IWMBAICBIWT (It was my birthday and I cried because I wanted to) assumes that there is a relationship between the degrees left and the number of people left. Let's hope it works!

Should work in all Pythons.

IWMBAICBIWT, Python

import sys

inputs = sys.argv

degreesleft = int(inputs[2])
peopleleft = int(inputs[4])

print(int(degreesleft/peopleleft))

IWMBAICBIWT (It was my birthday and I cried because I wanted to) assumes that there is a relationship between the degrees left and the number of people left. Let's hope it works!

Should work in all Pythons.

Source Link
Beta Decay
  • 23.4k
  • 8
  • 72
  • 165

IWMBAICBIWT, Python

import sys

inputs = sys.argv

degreesleft = int(inputs[1])
peopleleft = int(inputs[2])

print(int(degreesleft/peopleleft))

IWMBAICBIWT (It was my birthday and I cried because I wanted to) assumes that there is a relationship between the degrees left and the number of people left. Let's hope it works!

Should work in all Pythons.