40923121

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • Develop
  • 作業
    • 40923121 hw1
      • PCH7 Expansion Card Audio Video and Storage
      • Expansion Slots
      • PCI PCI X Slots
      • Summary
      • PCI Express  PCIe  Expansion Slots
      • AMR and CNR Slots
      • Overclocking
      • Choosing a Processor
      • CPU Cache
      • Video Output
      • Storage Devices  Optical Drives
      • Storage Devices  External Devices
      • Storage Devices  Legacy Devices
      • 擴展插槽
      • PCI   PCI-X插槽
      • 概要
      • PCI Express PCIe 擴展插槽
      • AMR和CNR插槽
      • 超頻
      • 選擇處理器
      • CPU緩存
      • 視頻輸出
      • 存儲設備 光盤驅動器
      • 存儲設備 外部設備
      • 存儲設備 舊版設備
      • Overview
      • Heat Sources
      • Heat Effects
      • Heat Reduction
      • Active Air Cooling
      • Passive Air Cooling
      • Liquid Cooling
      • CPU Cooling
      • Case Fans
      • Liquid Cooling Installation
      • 總覽
      • 熱源
      • 熱效應
      • 減少熱量
      • 主動風冷
      • 被動風冷
      • 液體冷卻
      • CPU散熱
      • 機箱風扇
      • 液體冷卻 安裝
    • hw2
    • hw3
      • Discussion-1
      • Sets
      • Features of sets
      • In Python
      • 討論區-1
      • 集的特徵
      • 在Python中
      • Discussion-2
      • More string things
      • Splitting strings
      • Joining strings
      • 討論區-2
      • 更弦的東西
      • 分割字符串
      • 連接字符串
      • Discussion-3
hw2 << Previous Next >> Discussion-1

hw3



13  Fibonacci 
Exercise 13  and Solution

Write a program that asks the user how many Fibonnaci numbers to generate and then generates them. Take this opportunity to think about how you can use functions. Make sure to ask the user to enter the number of numbers in the sequence to generate.(Hint: The Fibonnaci seqence is a sequence of numbers where the next number in the sequence is the sum of the previous two numbers in the sequence. The sequence looks like this: 1, 1, 2, 3, 5, 8, 13, …)


13 斐波那契 
練習13 和解決方案

編寫一個程序,詢問用戶要生成多少斐波那契數字,然後生成它們。藉此機會考慮如何使用功能。請確保要求用戶輸入要生成的序列中的數字。(提示:Fibonnaci序列是數字序列,其中序列中的下一個數字是序列中前兩個數字的和。該序列看起來像這樣:1、1、2、3、5、8、13…)



14  List Remove Duplicates 
Exercise 14  and Solution

Write a program (function!) that takes a list and returns a new list that contains all the elements of the first list minus all the duplicates.

Extras:

  • Write two different functions to do this - one using a loop and constructing a list, and another using sets.
  • Go back and do Exercise 5 using sets, and write the solution for that in a different function.

hw2 << Previous Next >> Discussion-1

Copyright © All rights reserved | This template is made with by Colorlib