GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Another python file, in a different editor. First function is called "calculateManSalary" and takes as input two variables: baseSalary and bonus. It returns the sum of the baseSalary and the bonus. Second function is called "calculateWomanSalary", and takes the same input, but multiplies the bonus with 1.5 and returns the sum of that and the baseSalary.

Download link

https://media.mathstodon.xyz/media_attachments/files/113/550/438/228/022/421/original/f3a7b41abbd9de42.png

Notices where this attachment appears

  1. Embed this notice
    Dr. Anna Latour (anna@mathstodon.xyz)'s status on Wednesday, 27-Nov-2024 02:51:59 JST Dr. Anna Latour Dr. Anna Latour
    in reply to

    @gvwilson

    Okay so I tried this, and initially it didn't look so bad, until I hit enter again and copilot came up with a new suggestion...

    I then deleted the test file, created a new empty file, and opened it with a different editor to see what would happen if I prompted it with "calculateManSalary(baseSalary". Got an opposite result, of sorts.

    In conversation about 7 months ago from mathstodon.xyz permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.