Read about pyton | 2 Discussions | Page 1

  1. W

    What ( Implicit) Command Defines Values in Dictionary?

    Hi, I am looking into some code in Python 3.7.2 that counts the number of appearances of in a message string. We are given a string. We then define an empty dictionary to be ultimately filled with the characters as the keys and the values will be (are the ) number of appearences of the...
  2. S

    Python Fit blackbody spectrum to data in python

    Hi! I have to fit a blackbody spectrum to some data points. The y axis is in mJy and the x axis is in log_10(freq). My code looks like this: from __future__ import division import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit h = 6.63*10**(-34) c =...