学年

質問の種類

情報:IT 高校生

教えて欲しいです🙇‍♀️🙇‍♀️🙇‍♀️🙇‍♀️🙇‍♀️

番氏名 · Question33 変数にデータを入れるとき、 [] (括弧)にまとめて代入し、リスト(配列) として定義することが できます。 変数の大きさを知りたい場合には、 len() を使います。また、リストはリスト内の値を入 れるといった処理も行えます。 リスト 書式 説明 len(). 書式 説明 6 変数の値の交換! 書式 変数1, 変数2 = 変数2, 変数 1 説明 年 変数 = [データ 1, データ 2, データ 3, …] 1つの変数の中に、 複数の数値や、 複数の文字列を格納するときの書き方。 文字列を格納す る場合には、各データをダブルクォーテーションやシングルクォーテーションで囲む必要が ある。 格納されたデータの一つ一つは要素と呼ばれる。 組 la = [5,8,4,3,6,9,2,1,7] print (a) #並べ替える前のリスト 3b = 4 for i in range(b): 5 c=i for j in range (i + 1,b): if a[c] > a[j]: (大きさの知りたい変数) 変数=len リストならデータの個数を知る。 結果は普通、 別の変数に格納する。 変数なら文字列、 変数の値を変数2に、 変数2の値を変数に入れ替える書き方。 リスト内のデータを比較して並べ替える操作を「選択ソート」 という。以下のプログラムの空欄を埋めて、選択ソートでリスト 内の9つの数字を昇順に並べ替えるプログラムを作りなさい。 1.olleHond T (#の文は入力しない) (ファイル名は「出席番号 93 名前」 で保存すること) 8 9 a[i], a[c] = 10 print (a) #並べ替えた後のリスト 実行例 [5, 8, 4,3, 6, 9, 2, 1,7] [1,2,3,4,5,6,7,8,9] リスト作成 Aceptos 開始 長さ判定 入替処理 リストの作成 リストαの表示 リストの個数 繰り返し (0からbの数まで ci の値 繰り返し (i+1 から b の数まで) a[c]> a[j] Yes c←jの値 繰り返し | a[i] と a[c] の値を交換 繰り返し リストの表示 終了 No.

回答募集中 回答数: 0
情報:IT 高校生

期末課題なのですがテストが無い分これで成績が決まってしまうのですが全く分かりません💦教えて欲しいです

■アルゴリズムとプログラミング (課題) 以下の課題に取り組み、 作成したファイルをデスクトップに保存し、PCの「課題提出全日制」 → 「2学年」 「自分のクラスのフォルダー」→「問題番号に対応したフォルダー」にドラッグアンド ドロップして提出しなさい。 (作成できたファイルのみ提出すること) ・Question ① マウスの移動量を表す単位で 「ミッキー」というものがある。 | ミッキーあたり0.254mm(ミリ メートル) である。 以下のプログラムの空欄を埋めて、キーボードからマウスの移動量をミッキーで 入力されたら、 cm (センチメートル) で表示されるプログラムを作りなさい。 (ファイル名は 「出席番号 q1 名前」 で保存すること) 1 a = float(input("マウスを何ミッキー動かしましたか?>")) 2b = 3. print("あなたは", b, "センチメートル動かしました。 ") 実行例 マウスを何ミッキー動かしましたか? >100 あなたは 2.54センチメートル動かしました。 • Question ② 製 以下のプログラムの空欄を埋めて、 「おはよう」, 「さよなら」 と言われたら挨拶を返すプログラム を作りなさい。 (ファイル名は「出席番号 92 名前」 で保存すること) 1 a=str(input("挨拶をしてください>")) 2 if a | "おはよう": print("コンピュータ:", a) "さよなら": print("コンピュータ:", a) 3 4 elifa 5 6 else: 7 実行例 挨拶をしてください > おはよう コンピュータ:おはよう print("コンピュータ:よくわかりません") 挨拶をしてください > さよなら コンピュータ: さよなら 挨拶をしてください > こんにちは コンピュータ: よくわかりません 開始 at 挨拶をしてください> aは "おはよう Yes おはよう 終了 No. は さよなら Yes さよなら No. よくわかりませ

回答募集中 回答数: 0
英語 高校生

至急!!私立大学看護学部の過去問です。答えがないため、回答を作って欲しいです!!科目は英語です。

問題番号に対応 効とする。 うち受験票お researchers at the University of Veterinary Medicine in Vienna, Austria, have found. Dogs won't give food to a human, even if that person gave them some food first, and that they would help other dogs that had helped them before. Therefore, the team Previous studies have shown that dogs can recognize cooperative and uncooperative humans, "reciprocal altruism"- that is, doing a good thing in return to a human who had given expected to find that their test subjects would put these two things together and show To start, the team trained a group of 37 dogs to press a button which would activate a them food first. *enclosure with the dispenser, while one of (2) two humans was in a separate enclosure with the button. One would press the button to food dispenser. Then, they put each dog in an would not. Each dog was paired with both humans in give food to the dog, and (4) unhelpful one. turn. After that, the researchers switched over the button and the dispenser. They expected that the dogs would press the button to give food to the helpful human but not to the though the dogs did press the button, they did it just as often when either human had the food dispenser, and even when no human was there at all. "In these kinds of studies (5) [perform / to / dogs / which/ trained / are in a particular behavior for an experiment, they will usually do the behavior a few times as they have simply learned the association between the behavior and getting a reward, and it may be enjoyable for them to do the behavior," said Jim McGetrick, a PhD student at the University of Veterinary Medicine in Vienna who led the research. 身を正しく が本冊子 1番 2 次の英文を読んで下の設問に答えなさい。 (3) giving us some food? Are they a combination of reasons. "It is (6) Why wouldn't our best pals want to help us out by secretly all bad boys and girls? McGetrick believes there is possible that the dogs did not understand enough about the task to realize that only one of the humans was providing them with food," he said. It could also be because they didn't fully understand the button and dispenser system, or because they were too focused on the food to notice whether a particular human was pressing the button or not. "Having said all that, even if they did completely understand the task and were fully attentive to the actions of the humans, there is still a good possibility that they wouldn't have given food back in return," he added. "It could be that providing food to a dog as they do not typically do that in everyday life." After all, humans are the ones who human is something very strange for (7) already have food, from a dog's perspective. why would your pet need to worry about (8) making sure you have enough? However, all the humans in the study were people the dogs didn't know. "It is quite 5

回答募集中 回答数: 0
英語 中学生

この問題の(4)なのですが、 I will try anything faster than any other student in my class. どんなことも他の人(クラスメート)よりも早く挑戦する と解答したのですが、あっていますか? 添削お願いします。

19 ハルナ(Haruna) がヒューズ先生 (Mr. Hughes) と話をしています。この対話文を読んで、 [1]~[(3) に入る最も適当なものをそれぞれあとのア~エのうちから一つずつ選び、その 符号を書きなさい。 また、対話文の内容に合うように、 (4) に入る言葉を英語で書きなさい。 ただし、語の数 は10語程度(.?! などの符号は語数に含まない。) とすること。 Haruna Mr. Hughes, do you have time ? Mr. Hughes Of course. Do you have any questions? Haruna:Yes, at the end of the class, you said, "Be the first penguin." (1) Mr. Hughes: All right. You know penguins, right? Penguins are birds that cannot fly but car swim in the sea. Haruna Yes, of course. I have seen them in an aquarium. Mr. Hughes : Some people say that there is no leader in the world of penguins but that is not true. When they catch food or run away to a safe place, one penguin moves first, and then the rest of them (2) Haruna Mr. Hughes: Wow, that's very interesting. For example, (3) | to jump into the sea to catch food because there is sometimes danger in the sea. But when one brave penguin jumps into the sea, all 0000/r

回答募集中 回答数: 0