geekcomputers / geekcomputers/Python
Conditionals
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 35.4k
- Fork
- 12.9k
- Merge medio
- 2h 37m
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con l'esercizio sulla condizione e le due variabili intere fornite nell'issue. Verifica il programma con diverse assegnazioni, inclusi i casi in cui uno dei due numeri è un fattore e i casi in cui non lo è nessuno dei due; è completo quando stampa esattamente "Factors!" solo per i primi casi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100