geekcomputers / geekcomputers/Python

Conditionals

オープン
#303 コメント 17 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
35.4k
フォーク
12.9k
平均マージ
2時間 37分
マージ済み PR(30日)
1

説明

Please can you help solve this in Python and explain to me

mystery_int_1 = 7
mystery_int_2 = 2

You may modify the lines of code above, but don't move them! When you Submit your code, we'll change these lines to assign different values to the variables.

The variables below hold two integers, mystery_int_1 and
mystery_int_2. Complete this program below such that it
prints "Factors!" if either of the numbers is a factor of the other. If neither number is a factor of the other, do not print anything.

Hint: You can do this with just one conditional statement
by using the logical expressions (and, or, and not). You'll also use the modulus operator

Please help me with the Add your code here!

Have tried several means am just not getting it

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

issue に用意されている条件分岐の演習と 2 つの整数変数から始めます。どちらか一方の数が因数である場合と、どちらも因数でない場合を含む、複数の異なる代入でプログラムを検証します。前者の場合にのみ正確に "Factors!" と出力されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
backend
issue の種類
機能追加
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。