This text is italic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module top_module ( | |
| input too_cold, | |
| input too_hot, | |
| input mode, | |
| input fan_on, | |
| output heater, | |
| output aircon, | |
| output fan | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module top_module ( | |
| input too_cold, | |
| input too_hot, | |
| input mode, | |
| input fan_on, | |
| output heater, | |
| output aircon, | |
| output fan | |
| ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##Write a program that reads a sequence of numbers from the first line and the number x from the second line. Then it should output all positions of x in the numerical sequence. | |
| ##The position count starts from 0. In case x is not in the sequence, print the line "not found" (quotes omitted, lowercased). | |
| ##Positions should be displayed in one line, in ascending order of the value. | |
| sample_list = input().split() | |
| target = input() | |
| index_list = [] |